2009-05-15 17:08:26 +00:00
|
|
|
// (C) Copyright Beman Dawes 2009
|
|
|
|
|
|
|
|
// Use, modification and distribution are subject to the
|
|
|
|
// Boost Software License, Version 1.0. (See accompanying file
|
|
|
|
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
|
|
|
|
|
|
|
// See http://www.boost.org/libs/config for more information.
|
|
|
|
|
2012-07-10 13:57:24 +00:00
|
|
|
// MACRO: BOOST_NO_CXX11_LAMBDAS
|
2009-05-21 15:16:39 +00:00
|
|
|
// TITLE: C++0x lambda feature unavailable
|
|
|
|
// DESCRIPTION: The compiler does not support the C++0x lambda feature
|
2009-05-15 17:08:26 +00:00
|
|
|
|
2011-05-09 11:36:39 +00:00
|
|
|
#if defined(__GNUC__) && !defined(__GXX_EXPERIMENTAL_CXX0X__) && !defined(BOOST_INTEL_STDCXX0X)
|
2011-10-31 11:21:10 +00:00
|
|
|
# error This feature is not available in non-C++0x mode
|
2011-03-16 18:45:07 +00:00
|
|
|
#endif
|
|
|
|
|
2012-07-10 19:10:08 +00:00
|
|
|
namespace boost_no_cxx11_lambdas {
|
2009-05-15 17:08:26 +00:00
|
|
|
|
|
|
|
int test()
|
|
|
|
{
|
2014-06-01 09:22:27 -07:00
|
|
|
(void)[](){};
|
2009-05-15 17:08:26 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|