From b75c8b9fba0a6dc22e12c1f25a19b657e4daa73f Mon Sep 17 00:00:00 2001 From: John Fletcher Date: Thu, 23 Jan 2014 20:05:38 +0000 Subject: [PATCH] test/regression/bug7624.cpp New file --- test/regression/bug7624.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test/regression/bug7624.cpp diff --git a/test/regression/bug7624.cpp b/test/regression/bug7624.cpp new file mode 100644 index 0000000..0516c6a --- /dev/null +++ b/test/regression/bug7624.cpp @@ -0,0 +1,12 @@ +#include +#include + +using namespace boost::phoenix::placeholders; +using namespace boost::phoenix; + +int main() +{ + find(boost::as_literal("fox"), 'x')(); // works + find(boost::as_literal("fox"), construct(arg1))('x'); // works + find(boost::as_literal("fox"), arg1)('x'); // compilation error +}