Mercurial > hg > vamp-build-and-test
comparison DEPENDENCIES/generic/include/boost/spirit/home/qi/copy.hpp @ 102:f46d142149f5
Whoops, finish that update
author | Chris Cannam |
---|---|
date | Mon, 07 Sep 2015 11:13:41 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
101:c530137014c0 | 102:f46d142149f5 |
---|---|
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 |