1 ///////////////////////////////////////////////////////////////////////////////
4 // Copyright 2008 Eric Niebler. Distributed under the Boost
5 // Software License, Version 1.0. (See accompanying file
6 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
8 #ifndef BOOST_XPRESSIVE_DETAIL_STATIC_PLACEHOLDERS_HPP_EAN_10_04_2005
9 #define BOOST_XPRESSIVE_DETAIL_STATIC_PLACEHOLDERS_HPP_EAN_10_04_2005
11 // MS compatible compilers support #pragma once
14 # pragma warning(push)
15 # pragma warning(disable:4510) // default constructor could not be generated
16 # pragma warning(disable:4610) // can never be instantiated - user defined constructor required
20 #include <boost/shared_ptr.hpp>
21 #include <boost/xpressive/detail/core/quant_style.hpp>
22 #include <boost/xpressive/detail/core/regex_impl.hpp>
24 namespace boost { namespace xpressive { namespace detail
27 ///////////////////////////////////////////////////////////////////////////////
30 struct mark_placeholder
32 BOOST_XPR_QUANT_STYLE(quant_variable_width, unknown_width::value, true)
37 ///////////////////////////////////////////////////////////////////////////////
38 // posix_charset_placeholder
40 struct posix_charset_placeholder
42 BOOST_XPR_QUANT_STYLE(quant_fixed_width, 1, true)
48 ///////////////////////////////////////////////////////////////////////////////
49 // assert_word_placeholder
51 template<typename Cond>
52 struct assert_word_placeholder
54 BOOST_XPR_QUANT_STYLE(quant_none, 0, true)
57 ///////////////////////////////////////////////////////////////////////////////
60 template<typename Char>
61 struct range_placeholder
63 BOOST_XPR_QUANT_STYLE(quant_fixed_width, 1, true)
70 ///////////////////////////////////////////////////////////////////////////////
71 // assert_bol_placeholder
73 struct assert_bol_placeholder
75 BOOST_XPR_QUANT_STYLE(quant_none, 0, true)
78 ///////////////////////////////////////////////////////////////////////////////
79 // assert_eol_placeholder
81 struct assert_eol_placeholder
83 BOOST_XPR_QUANT_STYLE(quant_none, 0, true)
86 ///////////////////////////////////////////////////////////////////////////////
87 // logical_newline_placeholder
89 struct logical_newline_placeholder
91 BOOST_XPR_QUANT_STYLE(quant_variable_width, unknown_width::value, true)
94 ///////////////////////////////////////////////////////////////////////////////
97 struct self_placeholder
99 BOOST_XPR_QUANT_STYLE(quant_variable_width, unknown_width::value, false)
102 ///////////////////////////////////////////////////////////////////////////////
103 // attribute_placeholder
105 template<typename Nbr>
106 struct attribute_placeholder
108 BOOST_XPR_QUANT_STYLE(quant_variable_width, unknown_width::value, false)
110 typedef Nbr nbr_type;
111 static Nbr nbr() { return Nbr(); }
114 }}} // namespace boost::xpressive::detail
116 #if defined(_MSC_VER)
117 # pragma warning(pop)