From: tho Date: Tue, 18 Nov 2008 14:28:49 +0000 (+0000) Subject: magic ParseHelpers.ih bugfix (ask g0dil) X-Git-Url: http://g0dil.de/git?a=commitdiff_plain;h=64a21c02b81501982ba4406ea69a388825c23057;p=senf.git magic ParseHelpers.ih bugfix (ask g0dil) git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@964 270642c3-0616-0410-b53a-bc976706d245 --- diff --git a/Packets/ParseHelpers.ih b/Packets/ParseHelpers.ih index 9422811..cdf8f74 100644 --- a/Packets/ParseHelpers.ih +++ b/Packets/ParseHelpers.ih @@ -445,15 +445,15 @@ # // SENF_PARSER_COLLECTION_I # # ifndef DOXYGEN -# - namespace senf { namespace detail { namespace auxtag { +# + namespace senf { namespace detail { namespace auxtag { struct none {}; } } } - namespace senf { namespace detail { namespace auxtag { + namespace senf { namespace detail { namespace auxtag { struct bytes {}; } } } - namespace senf { namespace detail { namespace auxtag { - template + namespace senf { namespace detail { namespace auxtag { + template struct transform {}; } } } -# +# # endif # # define SENF_PARSER_COLLECTION_TAG_GOBBLE__bytes(x) @@ -547,10 +547,10 @@ template struct DynamicAuxParserPolicy; template struct FixedAuxParserPolicy; template - struct ParserAuxPolicySelect + struct ParserAuxPolicySelect { typedef senf::detail::DynamicAuxParserPolicy type; }; template - struct ParserAuxPolicySelect + struct ParserAuxPolicySelect { typedef senf::detail::FixedAuxParserPolicy type; }; }}; # @@ -572,7 +572,7 @@ template T BOOST_PP_CAT(name, _dispatch)(boost::true_type) const \ { return parse( SENF_PARSER_OFFSET(name) ); } \ template T BOOST_PP_CAT(name, _dispatch)(boost::false_type) const \ - { return parse( aux(), SENF_PARSER_OFFSET(name) ); } \ + { return parse( BOOST_PP_CAT(aux,_)(), SENF_PARSER_OFFSET(name) ); } \ BOOST_PP_CAT(name, _t) BOOST_PP_CAT(name, _)() const \ { return BOOST_PP_CAT(name, _dispatch) ( \ boost::integral_constant()); } \