diff --git a/boost/spirit/home/support/attributes.hpp b/boost/spirit/home/support/attributes.hpp index f2c12df..53a969b 100644 --- a/boost/spirit/home/support/attributes.hpp +++ b/boost/spirit/home/support/attributes.hpp @@ -32,6 +32,7 @@ #include #include #include +#include #include #include @@ -741,6 +742,16 @@ namespace boost { namespace spirit { namespace traits } }; + // iterator range + template + struct clear_value > + { + static void call(iterator_range& val) + { + val = iterator_range(val.end(), val.end()); + } + }; + // main dispatch template void clear(T& val)