2
0
mirror of https://github.com/boostorg/phoenix.git synced 2026-02-19 02:32:09 +00:00

test/regression/bug7624.cpp Revised version

This commit is contained in:
John Fletcher
2014-02-02 11:31:25 +00:00
parent 9d224c7330
commit 6055449a9c

View File

@@ -7,12 +7,13 @@ using namespace boost::phoenix;
int main()
{
char X('x'), Y ;
char X('x');
find(boost::as_literal("fox"), 'x')(); // works
#ifndef BOOST_NO_CXX11_DECLTYPE
Y = find(boost::as_literal("fox"), arg1)('x'); // works for C++11
const char *Y = find(boost::as_literal("fox"), arg1)('x'); // works for C++11
#else
Y = find(boost::as_literal("fox"), construct<char>(arg1))('x'); // works
const char *Y = find(boost::as_literal("fox"), construct<char>(arg1))('x'); // works
#endif
BOOST_TEST(X==Y);
BOOST_TEST(X == *Y);
}