From 9c381d8ca61153aca1eb2def940af80c053027b6 Mon Sep 17 00:00:00 2001 From: Aleksey Gurtovoy Date: Sat, 16 Nov 2002 10:49:14 +0000 Subject: [PATCH] Borland workaround [SVN r16281] --- include/boost/mpl/aux_/size_impl.hpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/include/boost/mpl/aux_/size_impl.hpp b/include/boost/mpl/aux_/size_impl.hpp index 3ddec9c..9fdf766 100644 --- a/include/boost/mpl/aux_/size_impl.hpp +++ b/include/boost/mpl/aux_/size_impl.hpp @@ -21,22 +21,31 @@ #include "boost/mpl/begin_end.hpp" #include "boost/mpl/distance.hpp" #include "boost/mpl/aux_/traits_lambda_spec.hpp" +#include "boost/config.hpp" namespace boost { namespace mpl { // default implementation; conrete sequences might override it by -// specializing either the |size_traits| or the primary |size| template +// specializing either the 'size_traits' or the primary 'size' template template< typename Tag > struct size_traits { template< typename Sequence > struct algorithm +#if !defined(__BORLANDC__) && (__BORLANDC__ <= 0x561 || !defined(BOOST_STRICT_CONFIG)) : distance< typename begin::type , typename end::type > { +#else + { + typedef typename distance< + typename begin::type + , typename end::type + >::type type; +#endif }; };