File boost-fix-spirit-attr-handling.patch of Package boost
x
1
Index: boost/spirit/home/qi/auxiliary/attr.hpp
2
===================================================================
3
--- boost/spirit/home/qi/auxiliary/attr.hpp (revision 69217)
4
+++ boost/spirit/home/qi/auxiliary/attr.hpp (revision 69218)
5
6
#include <boost/spirit/home/qi/detail/assign_to.hpp>
7
#include <boost/spirit/home/qi/meta_compiler.hpp>
8
#include <boost/spirit/home/support/common_terminals.hpp>
9
+#include <boost/spirit/home/support/handles_container.hpp>
10
#include <boost/type_traits/add_reference.hpp>
11
#include <boost/type_traits/add_const.hpp>
12
#include <boost/type_traits/remove_const.hpp>
13
14
};
15
}}}
16
17
+namespace boost { namespace spirit { namespace traits
18
+{
19
+ ///////////////////////////////////////////////////////////////////////////
20
+ template <typename T, typename Attr, typename Context, typename Iterator>
21
+ struct handles_container<qi::attr_parser<T>, Attr, Context, Iterator>
22
+ : traits::is_container<Attr> {};
23
+}}}
24
+
25
#endif
26
27
28
Index: boost/spirit/home/qi/string/symbols.hpp
29
===================================================================
30
--- boost/spirit/home/qi/string/symbols.hpp (revision 70041)
31
+++ boost/spirit/home/qi/string/symbols.hpp (revision 70042)
32
33
};
34
}}}
35
36
+namespace boost { namespace spirit { namespace traits
37
+{
38
+ ///////////////////////////////////////////////////////////////////////////
39
+ template <typename Char, typename T, typename Lookup, typename Filter
40
+ , typename Attr, typename Context, typename Iterator>
41
+ struct handles_container<qi::symbols<Char, T, Lookup, Filter>, Attr, Context, Iterator>
42
+ : traits::is_container<Attr> {};
43
+}}}
44
+
45
#if defined(BOOST_MSVC)
46
# pragma warning(pop)
47
#endif
48