From: g0dil Date: Tue, 1 Sep 2009 12:34:37 +0000 (+0000) Subject: PPI: Replace std::pair<&,&> with boost::tuple (fixes g++<4.3 problems) X-Git-Url: http://g0dil.de/git?a=commitdiff_plain;h=cbda4fa567676eabc379cb06b7d79717f59e1a87;p=senf.git PPI: Replace std::pair<&,&> with boost::tuple (fixes g++<4.3 problems) git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@1365 270642c3-0616-0410-b53a-bc976706d245 --- diff --git a/senf/PPI/MultiConnectorMixin.mpp b/senf/PPI/MultiConnectorMixin.mpp index 0a85d3f..6beca75 100644 --- a/senf/PPI/MultiConnectorMixin.mpp +++ b/senf/PPI/MultiConnectorMixin.mpp @@ -37,6 +37,7 @@ #include #include #include +#include #include // ///////////////////////////mpp.p//////////////////////////////////////// @@ -96,7 +97,7 @@ ConnectorType_ & newConnector( mpp_FnParams() ); // senf::ppi::module::MultiConnectorMixin member declaration 1..2*MAX_ARGS template -static std::pair +static boost::tuple connect_(Source & source, Target & target mpp_FnParamsKomma()); // //////////////////////////////////////////////////////////////////////// @@ -140,7 +141,7 @@ typename boost::enable_if< boost::mpl::and_< boost::is_base_of, boost::is_base_of >, - std::pair >::type + boost::tuple >::type connect(Source & source, Target & target mpp_FnParamsKomma()); // //////////////////////////////////////////////////////////////////////// @@ -153,7 +154,7 @@ namespace detail { template typename boost::enable_if_c< senf::function_arity::value == BOOST_PP_ITERATION()+1, - std::pair >::type + boost::tuple >::type connect_(Fn, Source & source, Target & target mpp_FnParamsKomma() mpp_FnParamsKomma2()); } @@ -173,7 +174,7 @@ newConnector(Module & module mpp_FnParamsKomma()); // senf::ppi::module::detail::MultiConnectorMixinAccess member declaration 1..2*MAX_ARGS template -static std::pair +static boost::tuple connect(Source & source, Target & target mpp_FnParamsKomma()); // //////////////////////////////////////////////////////////////////////// @@ -285,7 +286,7 @@ senf::ppi::module::detail::MultiConnectorMixinAccess::newConnector( template template -std::pair +boost::tuple senf::ppi::module::MultiConnectorMixin:: connect_(Source & source, Target & target mpp_FnParamsKomma()) { @@ -298,7 +299,7 @@ connect_(Source & source, Target & target mpp_FnParamsKomma()) template template -std::pair +boost::tuple senf::ppi::module::MultiConnectorMixin:: connect_(Source & source, Target & target mpp_FnParamsKomma()) { @@ -311,7 +312,7 @@ connect_(Source & source, Target & target mpp_FnParamsKomma()) template template -std::pair +boost::tuple senf::ppi::module::MultiConnectorMixin:: connect_(Source & source, Target & target mpp_FnParamsKomma()) { @@ -327,7 +328,7 @@ typename boost::enable_if< boost::mpl::and_< boost::is_base_of, boost::is_base_of >, - std::pair >::type + boost::tuple >::type senf::ppi::connect(Source & source, Target & target mpp_FnParamsKomma()) { return module::detail::MultiConnectorMixinAccess::connect( @@ -338,7 +339,7 @@ senf::ppi::connect(Source & source, Target & target mpp_FnParamsKomma()) // senf::ppi::module::detail::MultiConnectorMixinAccess members template -std::pair +boost::tuple senf::ppi::module::detail::MultiConnectorMixinAccess::connect( Source & source, Target & target mpp_FnParamsKomma()) { @@ -353,7 +354,7 @@ senf::ppi::module::detail::MultiConnectorMixinAccess::connect( template typename boost::enable_if_c< senf::function_arity::value == BOOST_PP_ITERATION()+1, - std::pair >::type + boost::tuple >::type senf::ppi::detail::connect_(Fn, Source & source, Target & target mpp_FnParamsKomma() mpp_FnParamsKomma2()) { @@ -362,7 +363,7 @@ senf::ppi::detail::connect_(Fn, Source & source, Target & target typename Target::ConnectorType & t ( module::detail::MultiConnectorMixinAccess::newConnector(target mpp_CallParamsKomma2())); connect(s,t); - return std::pair(s,t); + return boost::tie(s,t); } // ////////////////////////////////////////////////////////////////////////