Fixing LocalFunction to work in type-of emulation mode.

[SVN r77755]
This commit is contained in:
Lorenzo Caminiti
2012-04-04 15:35:30 +00:00
parent 337638616a
commit 3b8fe255c4
6 changed files with 43 additions and 7 deletions

View File

@@ -6,6 +6,11 @@
// 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()
struct s;
BOOST_TYPEOF_REGISTER_TYPE(s); // Register before bind `this_` below.
// Compile all local function declaration combinations.
struct s {