From 8a49514506eeda54efe33f41251fcda3e58d65a7 Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Mon, 30 Sep 2013 00:18:40 +0000 Subject: [PATCH] cast: Remove obsolete MSVC version check. [SVN r86026] --- include/boost/cast.hpp | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/include/boost/cast.hpp b/include/boost/cast.hpp index 2615d18..0018924 100644 --- a/include/boost/cast.hpp +++ b/include/boost/cast.hpp @@ -50,17 +50,6 @@ # include # include -// It has been demonstrated numerous times that MSVC 6.0 fails silently at link -// time if you use a template function which has template parameters that don't -// appear in the function's argument list. -// -// TODO: Add this to config.hpp? -# if defined(BOOST_MSVC) && BOOST_MSVC < 1300 -# define BOOST_EXPLICIT_DEFAULT_TARGET , ::boost::type* = 0 -# else -# define BOOST_EXPLICIT_DEFAULT_TARGET -# endif - namespace boost { // See the documentation for descriptions of how to choose between @@ -73,7 +62,7 @@ namespace boost // section 15.8 exercise 1, page 425. template - inline Target polymorphic_cast(Source* x BOOST_EXPLICIT_DEFAULT_TARGET) + inline Target polymorphic_cast(Source* x) { Target tmp = dynamic_cast(x); if ( tmp == 0 ) throw std::bad_cast(); @@ -92,14 +81,12 @@ namespace boost // Contributed by Dave Abrahams template - inline Target polymorphic_downcast(Source* x BOOST_EXPLICIT_DEFAULT_TARGET) + inline Target polymorphic_downcast(Source* x) { BOOST_ASSERT( dynamic_cast(x) == x ); // detect logic error return static_cast(x); } -# undef BOOST_EXPLICIT_DEFAULT_TARGET - } // namespace boost # include