From 0dd3bcb062c3aaf9ffb8ca56b58c13d5dc714545 Mon Sep 17 00:00:00 2001 From: Jose Date: Wed, 8 Aug 2012 18:52:08 +0200 Subject: remove VC6 support --- cpp/include/IceUtil/Functional.h | 64 ---------------------------------------- 1 file changed, 64 deletions(-) (limited to 'cpp/include/IceUtil/Functional.h') diff --git a/cpp/include/IceUtil/Functional.h b/cpp/include/IceUtil/Functional.h index 6ddbd824461..3f57ae4b293 100644 --- a/cpp/include/IceUtil/Functional.h +++ b/cpp/include/IceUtil/Functional.h @@ -383,67 +383,3 @@ secondConstVoidMemFun1(void (T::*p)(A) const) } } - -// ---------------------------------------------------------------------- -// Extension for STLport: Special versions for bind1st and bind2nd for -// operations that do not return anything (i.e., return void). Needed -// for broken compilers, such as Visual C++ 6.0. -// ---------------------------------------------------------------------- - -#ifdef _STLP_BEGIN_NAMESPACE - -_STLP_BEGIN_NAMESPACE - -template -class voidbinder1st : - public unary_function { -protected: - _Operation _M_op; - typename _Operation::first_argument_type _M_value; -public: - voidbinder1st(const _Operation& __x, - const typename _Operation::first_argument_type& __y) - : _M_op(__x), _M_value(__y) {} - typename _Operation::result_type - operator()(const typename _Operation::second_argument_type& __x) const { - _M_op(_M_value, __x); - } -}; - -template -inline voidbinder1st<_Operation> -voidbind1st(const _Operation& __fn, const _Tp& __x) -{ - typedef typename _Operation::first_argument_type _Arg1_type; - return voidbinder1st<_Operation>(__fn, _Arg1_type(__x)); -} - -template -class voidbinder2nd - : public unary_function { -protected: - _Operation _M_op; - typename _Operation::second_argument_type value; -public: - voidbinder2nd(const _Operation& __x, - const typename _Operation::second_argument_type& __y) - : _M_op(__x), value(__y) {} - typename _Operation::result_type - operator()(const typename _Operation::first_argument_type& __x) const { - _M_op(__x, value); - } -}; - -template -inline voidbinder2nd<_Operation> -voidbind2nd(const _Operation& __fn, const _Tp& __x) -{ - typedef typename _Operation::second_argument_type _Arg2_type; - return voidbinder2nd<_Operation>(__fn, _Arg2_type(__x)); -} - -_STLP_END_NAMESPACE - -#endif -- cgit v1.2.3