annotate DEPENDENCIES/generic/include/boost/spirit/home/support/lazy.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 2665513ce2d3
children
rev   line source
Chris@16 1 /*=============================================================================
Chris@16 2 Copyright (c) 2001-2011 Joel de Guzman
Chris@16 3
Chris@16 4 Distributed under the Boost Software License, Version 1.0. (See accompanying
Chris@16 5 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
Chris@16 6 ==============================================================================*/
Chris@16 7 #if !defined(BOOST_SPIRIT_LAZY_NOVEMBER_04_2008_1157AM)
Chris@16 8 #define BOOST_SPIRIT_LAZY_NOVEMBER_04_2008_1157AM
Chris@16 9
Chris@16 10 #if defined(_MSC_VER)
Chris@16 11 #pragma once
Chris@16 12 #endif
Chris@16 13
Chris@16 14 #include <boost/spirit/include/phoenix_core.hpp>
Chris@16 15 #include <boost/proto/proto.hpp>
Chris@16 16 #include <boost/spirit/home/support/modify.hpp>
Chris@16 17 #include <boost/spirit/home/support/detail/is_spirit_tag.hpp>
Chris@16 18
Chris@16 19 namespace boost { namespace spirit
Chris@16 20 {
Chris@16 21 template <typename Eval>
Chris@16 22 typename proto::terminal<phoenix::actor<Eval> >::type
Chris@16 23 lazy(phoenix::actor<Eval> const& f)
Chris@16 24 {
Chris@16 25 return proto::terminal<phoenix::actor<Eval> >::type::make(f);
Chris@16 26 }
Chris@16 27
Chris@16 28 namespace tag
Chris@16 29 {
Chris@16 30 struct lazy_eval
Chris@16 31 {
Chris@16 32 BOOST_SPIRIT_IS_TAG()
Chris@16 33 };
Chris@16 34 }
Chris@16 35
Chris@16 36 template <typename Domain>
Chris@16 37 struct is_modifier_directive<Domain, tag::lazy_eval>
Chris@16 38 : mpl::true_ {};
Chris@16 39 }}
Chris@16 40
Chris@16 41 #endif