Commit Graph

9 Commits

Author SHA1 Message Date
Marshall Clow
9a3563c142 Removed usage of deprecated macros in Boost.ScopeExit
[SVN r81573]
2012-11-26 20:23:34 +00:00
Lorenzo Caminiti
a2ba828277 Not added SCOPE_EXIT_ALL_TPL but SCOPE_EXIT_ALL can capture this_ only on C++11 compilers that allow typename in templates (not MVSC10) -- all SCOPE_EXTIA_ALL can always capture the object using this instead of this_ and SCOPE_EXIT can always capture this_ even when implemented using C++11 lambdas because there is already a SCOPE_EXIT_TPL.
[SVN r77748]
2012-04-03 20:16:03 +00:00
Lorenzo Caminiti
5273b2aae7 Using Boost.Detail/LightweightTest instead of Boost.Test for ScopeExit tests and examples (because Boost.Test fails to build on some regression test platforms and because this library tests are simple enough that they don't really require Boost.Test).
[SVN r77663]
2012-03-31 13:27:36 +00:00
Lorenzo Caminiti
d57263204c Added #error to tests and examples that require variadic macros and/or lambda functions for better error reporting.
Split all sequence syntax with forced no-variadic tests and examples (..._nova) in their own separate file (to avoid macro redefinition warning on compilers within variadic macros).
Updated docs.

[SVN r77546]
2012-03-25 20:05:38 +00:00
Lorenzo Caminiti
cfefb68957 Fixed a bug in capturing this_ that caused ScopeExit tests to fail with an internal error on old GCCs for templates (now this type is deduced within a struct like all other type captures to workaround this). Added a test for this case (..._this_tpl.cpp).
Fixed a bug that omitted `= {}` when this_ was the only ScopeExit captured variable (now generating `= {}` even when only this_ is captured).
Fixed LocalFunction to work with the above ScopeExit fixes (some of which required changes to ScopeExit protected macro interface).

[SVN r77389]
2012-03-18 21:53:39 +00:00
Lorenzo Caminiti
96863a6bc2 Fixed all sequence syntax tests and examples and always compiling them also forcing BOOST_NO_VARIADIC_MACROS.
[SVN r77085]
2012-02-20 21:47:47 +00:00
Lorenzo Caminiti
c073d753cc Updated ScopeExit "world" tests making person a struct instead of a class.
Added a code comment to Utility/IdentityType tmp_assert test.

[SVN r77071]
2012-02-18 19:29:35 +00:00
Lorenzo Caminiti
95385ba025 Not compiling tests that require variadic macros on compilers for with BOOST_NO_VARIADIC_MACROS is defined.
[SVN r77057]
2012-02-17 17:52:33 +00:00
Lorenzo Caminiti
fdc03a4eeb Updating ScopeExit docs, examples, and tests after supporting variadics (with full backward compatibility), this capture (this_), no capture (void), and C++11 extensions.
[SVN r77030]
2012-02-15 01:19:41 +00:00