Compiling all ScopeExit and LocalFunction tests and examples on GCC with and without type-of emulation mode.

Added LocalFunction configuration macro to force use or not use of locals as template parameters.

[SVN r77765]
This commit is contained in:
Lorenzo Caminiti
2012-04-04 19:35:34 +00:00
parent 3b8fe255c4
commit 633a774276
37 changed files with 164 additions and 287 deletions

View File

@@ -6,12 +6,15 @@
// Home at http://www.boost.org/libs/local_function
#include <boost/local_function.hpp>
#include <boost/typeof/typeof.hpp>
#include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
#include <boost/detail/lightweight_test.hpp>
struct point {
int x;
int y;
};
BOOST_TYPEOF_REGISTER_TYPE(point) // Register for `NAME` below.
int main(void) {
bool BOOST_LOCAL_FUNCTION( (const point& p) (const point& q) ) {