mirror of
https://github.com/boostorg/local_function.git
synced 2026-01-28 07:12:22 +00:00
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:
@@ -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) ) {
|
||||
|
||||
Reference in New Issue
Block a user