]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/phoenix/test/regression/bug7624.cpp
f53c6bc5cb4d1f50f21c823e11cf68c36f8d24fd
1 /*=============================================================================
2 Copyright (c) 2005-2007 Dan Marsden
3 Copyright (c) 2005-2007 Joel de Guzman
4 Copyright (c) 2014 John Fletcher
6 Distributed under the Boost Software License, Version 1.0. (See accompanying
7 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
8 ==============================================================================*/
10 #include <boost/phoenix.hpp>
11 #include <boost/range/as_literal.hpp>
12 #include <boost/core/lightweight_test.hpp>
14 using namespace boost::phoenix::placeholders
;
15 using namespace boost::phoenix
;
20 find(boost::as_literal("fox"), 'x')(); // works
21 #if !(defined (BOOST_NO_CXX11_DECLTYPE) || \
22 defined (BOOST_INTEL_CXX_VERSION) || \
23 (BOOST_GCC_VERSION < 40500) )
24 const char *Y
= find(boost::as_literal("fox"), arg1
)('x'); // works for C++11
26 const char *Y
= find(boost::as_literal("fox"), construct
<char>(arg1
))('x'); // works
30 return boost::report_errors();