From 4142f8dec2b11420f2e347598481271b46c2ca50 Mon Sep 17 00:00:00 2001 From: mat007 Date: Mon, 25 Nov 2013 06:50:39 +0000 Subject: [PATCH] Refactoring git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@698 860be788-9bd5-4423-9f1e-828f051e677b --- turtle/detail/expectation_template.hpp | 4 ++-- turtle/detail/function_impl_template.hpp | 4 ++-- turtle/detail/function_template.hpp | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/turtle/detail/expectation_template.hpp b/turtle/detail/expectation_template.hpp index 78a079f..596d3a7 100644 --- a/turtle/detail/expectation_template.hpp +++ b/turtle/detail/expectation_template.hpp @@ -46,8 +46,8 @@ namespace detail { template< typename Signature > class expectation; - template< typename R BOOST_PP_COMMA_IF(MOCK_NUM_ARGS) - BOOST_PP_ENUM_PARAMS(MOCK_NUM_ARGS, typename T) > + template< typename R + BOOST_PP_ENUM_TRAILING_PARAMS(MOCK_NUM_ARGS, typename T) > class expectation< R (BOOST_PP_ENUM_PARAMS(MOCK_NUM_ARGS,T)) > : public expectation_base , public action< R, R (BOOST_PP_ENUM_PARAMS(MOCK_NUM_ARGS,T)) > diff --git a/turtle/detail/function_impl_template.hpp b/turtle/detail/function_impl_template.hpp index 848706e..ed48581 100644 --- a/turtle/detail/function_impl_template.hpp +++ b/turtle/detail/function_impl_template.hpp @@ -30,8 +30,8 @@ namespace detail { template< typename Signature > class function_impl; - template< typename R BOOST_PP_COMMA_IF(MOCK_NUM_ARGS) - BOOST_PP_ENUM_PARAMS(MOCK_NUM_ARGS, typename T) > + template< typename R + BOOST_PP_ENUM_TRAILING_PARAMS(MOCK_NUM_ARGS, typename T) > class function_impl< R ( BOOST_PP_ENUM_PARAMS(MOCK_NUM_ARGS, T) ) > : public verifiable, public boost::enable_shared_from_this< function_impl< R ( BOOST_PP_ENUM_PARAMS(MOCK_NUM_ARGS, T) )> > diff --git a/turtle/detail/function_template.hpp b/turtle/detail/function_template.hpp index 8ce331c..52062e1 100644 --- a/turtle/detail/function_template.hpp +++ b/turtle/detail/function_template.hpp @@ -21,8 +21,8 @@ namespace detail { template< typename Signature > class function; - template< typename R BOOST_PP_COMMA_IF(MOCK_NUM_ARGS) - BOOST_PP_ENUM_PARAMS(MOCK_NUM_ARGS, typename T) > + template< typename R + BOOST_PP_ENUM_TRAILING_PARAMS(MOCK_NUM_ARGS, typename T) > class function< R ( BOOST_PP_ENUM_PARAMS(MOCK_NUM_ARGS, T) ) > { public: