Lines 15-20
Link Here
|
15 |
#include <boost/spirit/home/support/unused.hpp> |
15 |
#include <boost/spirit/home/support/unused.hpp> |
16 |
#include <boost/spirit/home/support/has_semantic_action.hpp> |
16 |
#include <boost/spirit/home/support/has_semantic_action.hpp> |
17 |
#include <boost/spirit/home/support/attributes_fwd.hpp> |
17 |
#include <boost/spirit/home/support/attributes_fwd.hpp> |
|
|
18 |
#include <boost/spirit/home/support/container.hpp> |
18 |
#include <boost/spirit/home/support/detail/hold_any.hpp> |
19 |
#include <boost/spirit/home/support/detail/hold_any.hpp> |
19 |
#include <boost/spirit/home/support/detail/as_variant.hpp> |
20 |
#include <boost/spirit/home/support/detail/as_variant.hpp> |
20 |
#include <boost/optional/optional.hpp> |
21 |
#include <boost/optional/optional.hpp> |
Lines 900-906
Link Here
|
900 |
template <typename Out, typename T> |
901 |
template <typename Out, typename T> |
901 |
struct print_attribute_debug<Out, boost::optional<T> > |
902 |
struct print_attribute_debug<Out, boost::optional<T> > |
902 |
{ |
903 |
{ |
903 |
static void call(Out& out, T const& val) |
904 |
static void call(Out& out, boost::optional<T> const& val) |
904 |
{ |
905 |
{ |
905 |
if (val) |
906 |
if (val) |
906 |
print_attribute(out, *val); |
907 |
print_attribute(out, *val); |