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:
12
test/regression/bug7624.cpp
Normal file
12
test/regression/bug7624.cpp
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user