|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r86026 - trunk/boost
From: steveire_at_[hidden]
Date: 2013-09-29 20:18:40
Author: skelly
Date: 2013-09-29 20:18:40 EDT (Sun, 29 Sep 2013)
New Revision: 86026
URL: http://svn.boost.org/trac/boost/changeset/86026
Log:
cast: Remove obsolete MSVC version check.
Text files modified:
trunk/boost/cast.hpp | 17 ++---------------
1 files changed, 2 insertions(+), 15 deletions(-)
Modified: trunk/boost/cast.hpp
==============================================================================
--- trunk/boost/cast.hpp Sun Sep 29 20:18:28 2013 (r86025)
+++ trunk/boost/cast.hpp 2013-09-29 20:18:40 EDT (Sun, 29 Sep 2013) (r86026)
@@ -50,17 +50,6 @@
# include <boost/limits.hpp>
# include <boost/detail/select_type.hpp>
-// 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<Target>* = 0
-# else
-# define BOOST_EXPLICIT_DEFAULT_TARGET
-# endif
-
namespace boost
{
// See the documentation for descriptions of how to choose between
@@ -73,7 +62,7 @@
// section 15.8 exercise 1, page 425.
template <class Target, class Source>
- inline Target polymorphic_cast(Source* x BOOST_EXPLICIT_DEFAULT_TARGET)
+ inline Target polymorphic_cast(Source* x)
{
Target tmp = dynamic_cast<Target>(x);
if ( tmp == 0 ) throw std::bad_cast();
@@ -92,14 +81,12 @@
// Contributed by Dave Abrahams
template <class Target, class Source>
- inline Target polymorphic_downcast(Source* x BOOST_EXPLICIT_DEFAULT_TARGET)
+ inline Target polymorphic_downcast(Source* x)
{
BOOST_ASSERT( dynamic_cast<Target>(x) == x ); // detect logic error
return static_cast<Target>(x);
}
-# undef BOOST_EXPLICIT_DEFAULT_TARGET
-
} // namespace boost
# include <boost/numeric/conversion/cast.hpp>
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk