]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/boost/spirit/home/qi/copy.hpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / boost / spirit / home / qi / copy.hpp
1 /*=============================================================================
2 Copyright (c) 2001-2012 Joel de Guzman
3
4 Distributed under the Boost Software License, Version 1.0. (See accompanying
5 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 ==============================================================================*/
7 #if !defined(BOOST_SPIRIT_COPY_FEBRUARY_7_2012_0159PM)
8 #define BOOST_SPIRIT_COPY_FEBRUARY_7_2012_0159PM
9
10 #include <boost/config.hpp>
11 #include <boost/proto/proto.hpp>
12
13 #if defined(_MSC_VER)
14 #pragma once
15 #endif
16
17 #if !defined(BOOST_NO_CXX11_AUTO_DECLARATIONS)
18
19 namespace boost { namespace spirit { namespace qi
20 {
21 template <typename Expr>
22 typename boost::proto::result_of::deep_copy<Expr>::type
23 copy(Expr const& expr)
24 {
25 BOOST_SPIRIT_ASSERT_MATCH(boost::spirit::qi::domain, Expr);
26 return boost::proto::deep_copy(expr);
27 }
28 }}}
29
30 #endif
31 #endif