From 6c09ce7883e6e18f707e0164df94a1690531e55f Mon Sep 17 00:00:00 2001 From: Peder Holt Date: Mon, 29 Oct 2007 08:05:17 +0000 Subject: [PATCH] Fixed duplicate definition of boost::type_of::push_back when BOOST_TYPEOF_LIMIT_SIZE>50 and not a multiple of 50. (From Dave Jenkins) [SVN r40540] --- include/boost/typeof/vector.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/boost/typeof/vector.hpp b/include/boost/typeof/vector.hpp index 9fc4dde..7dc8d50 100755 --- a/include/boost/typeof/vector.hpp +++ b/include/boost/typeof/vector.hpp @@ -138,9 +138,12 @@ namespace boost { namespace type_of { namespace boost { namespace type_of { +# if BOOST_TYPEOF_LIMIT_SIZE < 50 template struct push_back { typedef V type; - }; //default behaviour is to let push_back ignore T, and return the input vector. + }; +# endif + //default behaviour is to let push_back ignore T, and return the input vector. //This is to let BOOST_TYPEOF_NESTED_TYPEDEF work properly with the default vector. # define BOOST_PP_LOCAL_MACRO BOOST_TYPEOF_spec_push_back # define BOOST_PP_LOCAL_LIMITS \