Mercurial > hg > vamp-build-and-test
annotate DEPENDENCIES/generic/include/boost/spirit/home/support/auto.hpp @ 133:4acb5d8d80b6 tip
Don't fail environmental check if README.md exists (but .txt and no-suffix don't)
author | Chris Cannam |
---|---|
date | Tue, 30 Jul 2019 12:25:44 +0100 |
parents | f46d142149f5 |
children |
rev | line source |
---|---|
Chris@102 | 1 /*============================================================================= |
Chris@102 | 2 Copyright (c) 2001-2012 Joel de Guzman |
Chris@102 | 3 |
Chris@102 | 4 Distributed under the Boost Software License, Version 1.0. (See accompanying |
Chris@102 | 5 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |
Chris@102 | 6 ==============================================================================*/ |
Chris@102 | 7 #if !defined(BOOST_SPIRIT_AUTO_FEBRUARY_7_2012_0159PM) |
Chris@102 | 8 #define BOOST_SPIRIT_AUTO_FEBRUARY_7_2012_0159PM |
Chris@102 | 9 |
Chris@102 | 10 #include <boost/config.hpp> |
Chris@102 | 11 #include <boost/typeof/typeof.hpp> |
Chris@102 | 12 |
Chris@102 | 13 #if defined(_MSC_VER) |
Chris@102 | 14 #pragma once |
Chris@102 | 15 #endif |
Chris@102 | 16 |
Chris@102 | 17 #include <boost/config.hpp> |
Chris@102 | 18 |
Chris@102 | 19 // Support for c++11 auto. See: |
Chris@102 | 20 // http://boost-spirit.com/home/articles/qi-example/zero-to-60-mph-in-2-seconds/ |
Chris@102 | 21 // for more info |
Chris@102 | 22 |
Chris@102 | 23 #if defined(BOOST_NO_CXX11_AUTO_DECLARATIONS) |
Chris@102 | 24 |
Chris@102 | 25 #define BOOST_SPIRIT_AUTO(domain_, name, expr) \ |
Chris@102 | 26 typedef boost::proto::result_of:: \ |
Chris@102 | 27 deep_copy<BOOST_TYPEOF(expr)>::type name##_expr_type; \ |
Chris@102 | 28 BOOST_SPIRIT_ASSERT_MATCH( \ |
Chris@102 | 29 boost::spirit::domain_::domain, name##_expr_type); \ |
Chris@102 | 30 BOOST_AUTO(name, boost::proto::deep_copy(expr)); \ |
Chris@102 | 31 /****/ |
Chris@102 | 32 |
Chris@102 | 33 #endif |
Chris@102 | 34 |
Chris@102 | 35 #endif |