mirror of
https://github.com/boostorg/local_function.git
synced 2026-02-02 08:52:14 +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:
@@ -11,6 +11,8 @@
|
||||
#else
|
||||
|
||||
#include <boost/local_function.hpp>
|
||||
#include <boost/typeof/typeof.hpp>
|
||||
#include BOOST_TYPEOF_INCREMENT_REGISTRATION_GROUP()
|
||||
#include <boost/detail/lightweight_test.hpp>
|
||||
|
||||
//[operator_error
|
||||
@@ -18,6 +20,7 @@ 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