summaryrefslogtreecommitdiff
path: root/libs/phoenix/test/regression/bug7624.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libs/phoenix/test/regression/bug7624.cpp')
-rw-r--r--libs/phoenix/test/regression/bug7624.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/phoenix/test/regression/bug7624.cpp b/libs/phoenix/test/regression/bug7624.cpp
index 9eace4b4b..fc86e5d33 100644
--- a/libs/phoenix/test/regression/bug7624.cpp
+++ b/libs/phoenix/test/regression/bug7624.cpp
@@ -18,7 +18,9 @@ int main()
{
char X('x');
find(boost::as_literal("fox"), 'x')(); // works
-#ifndef BOOST_NO_CXX11_DECLTYPE
+#if !(defined (BOOST_NO_CXX11_DECLTYPE) || \
+ defined (BOOST_INTEL_CXX_VERSION) || \
+ (BOOST_GCC_VERSION < 40500) )
const char *Y = find(boost::as_literal("fox"), arg1)('x'); // works for C++11
#else
const char *Y = find(boost::as_literal("fox"), construct<char>(arg1))('x'); // works