CFG: handling C++03 compilers

This commit is contained in:
Andrzej Krzemieński
2015-10-15 08:42:36 +02:00
parent fb1cf2581e
commit ade05cdffa

View File

@ -13,7 +13,11 @@
#include "boost/core/lightweight_test.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 {};
@ -31,11 +35,4 @@ int main()
return 0;
}
#else
int main()
{
return 0;
}
#endif