2
0
mirror of https://github.com/boostorg/phoenix.git synced 2026-02-20 02:52:08 +00:00

test/regression/bug7624.cpp New file

This commit is contained in:
John Fletcher
2014-01-23 20:05:38 +00:00
parent 364589202d
commit b75c8b9fba

View File

@@ -0,0 +1,12 @@
#include <boost/phoenix.hpp>
#include <boost/range/as_literal.hpp>
using namespace boost::phoenix::placeholders;
using namespace boost::phoenix;
int main()
{
find(boost::as_literal("fox"), 'x')(); // works
find(boost::as_literal("fox"), construct<char>(arg1))('x'); // works
find(boost::as_literal("fox"), arg1)('x'); // compilation error
}