File indexing completed on 2025-01-19 09:47:36
0001
0002
0003
0004
0005
0006 #if !defined(BOOST_SPIRIT_KARMA_UNUSED_DELIMITER_MAR_15_2009_0923PM)
0007 #define BOOST_SPIRIT_KARMA_UNUSED_DELIMITER_MAR_15_2009_0923PM
0008
0009 #if defined(_MSC_VER)
0010 #pragma once
0011 #endif
0012
0013 #include <boost/spirit/home/support/unused.hpp>
0014
0015 namespace boost { namespace spirit { namespace karma { namespace detail
0016 {
0017 #ifdef _MSC_VER
0018 # pragma warning(push)
0019 # pragma warning(disable: 4512)
0020 #endif
0021 template <typename Delimiter>
0022 struct unused_delimiter : unused_type
0023 {
0024 unused_delimiter(Delimiter const& delim)
0025 : delimiter(delim) {}
0026 Delimiter const& delimiter;
0027 };
0028 #ifdef _MSC_VER
0029 # pragma warning(pop)
0030 #endif
0031
0032
0033
0034
0035
0036 template <typename Delimiter, typename Default>
0037 inline Delimiter const&
0038 get_delimiter(unused_delimiter<Delimiter> const& u, Default const&)
0039 {
0040 return u.delimiter;
0041 }
0042
0043
0044
0045 template <typename Delimiter, typename Default>
0046 inline Default const&
0047 get_delimiter(Delimiter const&, Default const& d)
0048 {
0049 return d;
0050 }
0051
0052 }}}}
0053
0054 #endif