mirror of
https://github.com/boostorg/function.git
synced 2025-07-30 04:47:14 +02:00
Function: Remove obsolete MSVC version checks.
[SVN r86018]
This commit is contained in:
@ -66,11 +66,11 @@
|
|||||||
# define BOOST_FUNCTION_COMPARE_TYPE_ID(X,Y) ((X)==(Y))
|
# define BOOST_FUNCTION_COMPARE_TYPE_ID(X,Y) ((X)==(Y))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(BOOST_MSVC) && BOOST_MSVC <= 1300 || defined(__ICL) && __ICL <= 600 || defined(__MWERKS__) && __MWERKS__ < 0x2406 && !defined(BOOST_STRICT_CONFIG)
|
#if defined(__ICL) && __ICL <= 600 || defined(__MWERKS__) && __MWERKS__ < 0x2406 && !defined(BOOST_STRICT_CONFIG)
|
||||||
# define BOOST_FUNCTION_TARGET_FIX(x) x
|
# define BOOST_FUNCTION_TARGET_FIX(x) x
|
||||||
#else
|
#else
|
||||||
# define BOOST_FUNCTION_TARGET_FIX(x)
|
# define BOOST_FUNCTION_TARGET_FIX(x)
|
||||||
#endif // not MSVC
|
#endif // __ICL etc
|
||||||
|
|
||||||
#if !BOOST_WORKAROUND(__BORLANDC__, < 0x5A0)
|
#if !BOOST_WORKAROUND(__BORLANDC__, < 0x5A0)
|
||||||
# define BOOST_FUNCTION_ENABLE_IF_NOT_INTEGRAL(Functor,Type) \
|
# define BOOST_FUNCTION_ENABLE_IF_NOT_INTEGRAL(Functor,Type) \
|
||||||
@ -661,11 +661,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
template<typename Functor>
|
template<typename Functor>
|
||||||
#if defined(BOOST_MSVC) && BOOST_WORKAROUND(BOOST_MSVC, < 1300)
|
|
||||||
const Functor* target( Functor * = 0 ) const
|
|
||||||
#else
|
|
||||||
const Functor* target() const
|
const Functor* target() const
|
||||||
#endif
|
|
||||||
{
|
{
|
||||||
if (!vtable) return 0;
|
if (!vtable) return 0;
|
||||||
|
|
||||||
@ -683,11 +679,7 @@ public:
|
|||||||
template<typename F>
|
template<typename F>
|
||||||
bool contains(const F& f) const
|
bool contains(const F& f) const
|
||||||
{
|
{
|
||||||
#if defined(BOOST_MSVC) && BOOST_WORKAROUND(BOOST_MSVC, < 1300)
|
|
||||||
if (const F* fp = this->target( (F*)0 ))
|
|
||||||
#else
|
|
||||||
if (const F* fp = this->template target<F>())
|
if (const F* fp = this->template target<F>())
|
||||||
#endif
|
|
||||||
{
|
{
|
||||||
return function_equal(*fp, f);
|
return function_equal(*fp, f);
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user