From ade05cdffa85a4836c2090d2e94de5d61f82a62a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrzej=20Krzemie=C5=84ski?= Date: Thu, 15 Oct 2015 08:42:36 +0200 Subject: [PATCH] CFG: handling C++03 compilers --- ...ional_xconfig_NO_LEGAL_CONVERT_FROM_REF_pass.cpp | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/test/optional_xconfig_NO_LEGAL_CONVERT_FROM_REF_pass.cpp b/test/optional_xconfig_NO_LEGAL_CONVERT_FROM_REF_pass.cpp index be7d47c..a6edbc6 100644 --- a/test/optional_xconfig_NO_LEGAL_CONVERT_FROM_REF_pass.cpp +++ b/test/optional_xconfig_NO_LEGAL_CONVERT_FROM_REF_pass.cpp @@ -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