2
0
mirror of https://github.com/boostorg/phoenix.git synced 2026-02-20 02:52:08 +00:00
Files
phoenix/test/regression/bug7624.cpp
2014-01-23 20:05:38 +00:00

13 lines
397 B
C++

#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
}