mirror of
https://github.com/boostorg/optional.git
synced 2025-07-17 06:12:08 +02:00
CFG: handling C++03 compilers
This commit is contained in:
@ -13,7 +13,11 @@
|
|||||||
#include "boost/core/lightweight_test.hpp"
|
#include "boost/core/lightweight_test.hpp"
|
||||||
#include "boost/optional/detail/optional_config.hpp"
|
#include "boost/optional/detail/optional_config.hpp"
|
||||||
|
|
||||||
#ifndef BOOST_OPTIONAL_CONFIG_NO_LEGAL_CONVERT_FROM_REF
|
#if (defined BOOST_NO_CXX11_RVALUE_REFERENCES) || (defined BOOST_OPTIONAL_CONFIG_NO_LEGAL_CONVERT_FROM_REF)
|
||||||
|
|
||||||
|
int main() { return 0; }
|
||||||
|
|
||||||
|
#else
|
||||||
|
|
||||||
struct S {};
|
struct S {};
|
||||||
|
|
||||||
@ -31,11 +35,4 @@ int main()
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#else
|
|
||||||
|
|
||||||
int main()
|
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user