mirror of
https://github.com/boostorg/optional.git
synced 2025-07-30 04:27:19 +02:00
hack: detect intel
This commit is contained in:
@ -17,13 +17,18 @@ int main()
|
|||||||
{
|
{
|
||||||
#if defined(__GNUC__)
|
#if defined(__GNUC__)
|
||||||
|
|
||||||
std::string rrefs_y = "HAS RVALUE REFS";
|
std::string emptys;
|
||||||
std::string rrefs_n = "NO RVALUE REFS";
|
|
||||||
|
#ifdef BOOST_INTEL_CXX_VERSION
|
||||||
|
BOOST_TEST_EQ(emptys, "HAS INTEL INSIDE");
|
||||||
|
#else
|
||||||
|
BOOST_TEST_EQ(emptys, "NO INTEL INSIDE");
|
||||||
|
#endif
|
||||||
|
|
||||||
#if !defined BOOST_NO_CXX11_RVALUE_REFERENCES
|
#if !defined BOOST_NO_CXX11_RVALUE_REFERENCES
|
||||||
BOOST_TEST_EQ("", rrefs_y);
|
BOOST_TEST_EQ(emptys, "HAS RVALUE REFS");
|
||||||
#else
|
#else
|
||||||
BOOST_TEST_EQ("", rrefs_n);
|
BOOST_TEST_EQ(emptys, "NO RVALUE REFS");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int empty = -1;
|
int empty = -1;
|
||||||
|
Reference in New Issue
Block a user