Skip to content

Commit aa20ce7

Browse files
committed
Large patch from Ulrich Eckhardt to fix support for EVC++ 4.
[SVN r30670]
1 parent 6074a23 commit aa20ce7

File tree

7 files changed

+14
-14
lines changed

7 files changed

+14
-14
lines changed

include/boost/python/detail/config.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@
2929
# endif
3030

3131
# if defined(BOOST_MSVC)
32-
# if _MSC_VER <= 1200
32+
# if _MSC_VER < 1300
3333
# define BOOST_MSVC6_OR_EARLIER 1
3434
# endif
3535

36-
# pragma warning (disable : 4786) // disable truncated debug symbols
37-
# pragma warning (disable : 4251) // disable exported dll function
38-
# pragma warning (disable : 4800) //'int' : forcing value to bool 'true' or 'false'
39-
# pragma warning (disable : 4275) // non dll-interface class
36+
# pragma warning (disable : 4786) // disable truncated debug symbols
37+
# pragma warning (disable : 4251) // disable exported dll function
38+
# pragma warning (disable : 4800) //'int' : forcing value to bool 'true' or 'false'
39+
# pragma warning (disable : 4275) // non dll-interface class
4040

4141
# elif defined(__ICL) && __ICL < 600 // Intel C++ 5
4242

include/boost/python/detail/force_instantiate.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ namespace boost { namespace python { namespace detail {
1010
// Allows us to force the argument to be instantiated without
1111
// incurring unused variable warnings
1212

13-
# if !defined(BOOST_MSVC) || BOOST_MSVC == 1200 || _MSC_FULL_VER > 13102196
13+
# if !defined(BOOST_MSVC) || BOOST_MSVC < 1300 || _MSC_FULL_VER > 13102196
1414

1515
template <class T>
1616
inline void force_instantiate(T const&) {}

include/boost/python/handle.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ class handle
8787
return *this;
8888
}
8989

90-
#if !defined(BOOST_MSVC) || (BOOST_MSVC > 1200)
90+
#if !defined(BOOST_MSVC) || (BOOST_MSVC >= 1300)
9191

9292
template<typename Y>
9393
handle& operator=(handle<Y> const & r) // never throws

include/boost/python/object/forward.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# include <boost/ref.hpp>
1313
# include <boost/python/detail/value_arg.hpp>
1414
# include <boost/python/detail/copy_ctor_mutates_rhs.hpp>
15-
# if BOOST_WORKAROUND(BOOST_MSVC, == 1200)
15+
# if BOOST_WORKAROUND(BOOST_MSVC, < 1300)
1616
# include <boost/type_traits/is_enum.hpp>
1717
# include <boost/mpl/and.hpp>
1818
# include <boost/mpl/not.hpp>
@@ -42,7 +42,7 @@ struct reference_to_value
4242
template <class T>
4343
struct forward
4444
: mpl::if_<
45-
# if BOOST_WORKAROUND(BOOST_MSVC, == 1200)
45+
# if BOOST_WORKAROUND(BOOST_MSVC, < 1300)
4646
// vc6 chokes on unforwarding enums nested in classes
4747
mpl::and_<
4848
is_scalar<T>

include/boost/python/object_core.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ namespace api
8686
class object_operators : public def_visitor<U>
8787
{
8888
protected:
89-
# if !defined(BOOST_MSVC) || BOOST_MSVC > 1200
89+
# if !defined(BOOST_MSVC) || BOOST_MSVC >= 1300
9090
typedef object const& object_cref;
9191
# else
9292
typedef object object_cref;
@@ -300,7 +300,7 @@ namespace api
300300
template <class T>
301301
explicit object(
302302
T const& x
303-
# if BOOST_WORKAROUND(BOOST_MSVC, == 1200)
303+
# if BOOST_WORKAROUND(BOOST_MSVC, < 1300)
304304
// use some SFINAE to un-confuse MSVC about its
305305
// copy-initialization ambiguity claim.
306306
, typename mpl::if_<is_proxy<T>,int&,int>::type* = 0
@@ -331,7 +331,7 @@ namespace api
331331
inline explicit derived(python::detail::new_non_null_reference p) \
332332
: base(p) {}
333333

334-
# if !defined(BOOST_MSVC) || BOOST_MSVC > 1200
334+
# if !defined(BOOST_MSVC) || BOOST_MSVC >= 1300
335335
# define BOOST_PYTHON_FORWARD_OBJECT_CONSTRUCTORS BOOST_PYTHON_FORWARD_OBJECT_CONSTRUCTORS_
336336
# else
337337
// MSVC6 has a bug which causes an explicit template constructor to

include/boost/python/proxy.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class proxy : public object_operators<proxy<Policies> >
1515
{
1616
typedef typename Policies::key_type key_type;
1717

18-
# if !defined(BOOST_MSVC) || BOOST_MSVC > 1200
18+
# if !defined(BOOST_MSVC) || BOOST_MSVC >= 1300
1919
typedef proxy const& assignment_self;
2020
# else
2121
typedef proxy assignment_self;

include/boost/python/suite/indexing/indexing_suite.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ namespace boost { namespace python {
125125
typedef detail::container_element<Container, Index, DerivedPolicies>
126126
container_element_t;
127127

128-
#if BOOST_WORKAROUND(BOOST_MSVC, == 1200)
128+
#if BOOST_WORKAROUND(BOOST_MSVC, < 1300)
129129
struct return_policy : return_internal_reference<> {};
130130
#else
131131
typedef return_internal_reference<> return_policy;

0 commit comments

Comments
 (0)