From: g0dil Date: Fri, 10 Jul 2009 14:42:01 +0000 (+0000) Subject: Packets: Make private VARIANT parser parts protected X-Git-Url: http://g0dil.de/git?a=commitdiff_plain;h=5baeec0a7f36c0edc2206916a5f13fb113cced42;p=senf.git Packets: Make private VARIANT parser parts protected git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@1269 270642c3-0616-0410-b53a-bc976706d245 --- diff --git a/Packets/VariantParser.ih b/Packets/VariantParser.ih index d667f86..f485bb2 100644 --- a/Packets/VariantParser.ih +++ b/Packets/VariantParser.ih @@ -124,9 +124,10 @@ namespace detail { # define SENF_PARSER_VARIANT_I(access, name, chooser, types) \ SENF_PARSER_REQUIRE_VAR(variant) \ - private: \ + protected: \ typedef boost::mpl::vector< BOOST_PP_SEQ_ENUM(SENF_PARSER_VARIANT_TYPES(types)) > \ BOOST_PP_CAT(name, _parsers); \ + private: \ typedef BOOST_PP_CAT(SENF_PARSER_COLLECTION_GETAUX(chooser), _t)::value_type \ BOOST_PP_CAT(name,_chooser_value_type); \ BOOST_PP_IF( SENF_PARSER_VARIANT_NEEDTRANSFORM(types), \ @@ -138,7 +139,7 @@ namespace detail { BOOST_PP_CAT(name, _traits); \ public: \ SENF_PARSER_COLLECTION_I( \ - BOOST_PP_IIF( SENF_PARSER_VARIANT_NEEDACCESSORS(types), private, access), \ + BOOST_PP_IIF( SENF_PARSER_VARIANT_NEEDACCESSORS(types), protected, access), \ name, chooser, BOOST_PP_CAT(name, _traits) ); \ access: \ BOOST_PP_SEQ_FOR_EACH_I(SENF_PARSER_VARIANT_ACCESSOR, name, types) \