summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '3rdParty/Boost/src/boost/serialization/void_cast.hpp')
-rw-r--r--3rdParty/Boost/src/boost/serialization/void_cast.hpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/3rdParty/Boost/src/boost/serialization/void_cast.hpp b/3rdParty/Boost/src/boost/serialization/void_cast.hpp
index b5b1e85..61b6449 100644
--- a/3rdParty/Boost/src/boost/serialization/void_cast.hpp
+++ b/3rdParty/Boost/src/boost/serialization/void_cast.hpp
@@ -1,11 +1,11 @@
#ifndef BOOST_SERIALIZATION_VOID_CAST_HPP
#define BOOST_SERIALIZATION_VOID_CAST_HPP
// MS compatible compilers support #pragma once
-#if defined(_MSC_VER) && (_MSC_VER >= 1020)
+#if defined(_MSC_VER)
# pragma once
#endif
/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
// void_cast.hpp: interface for run-time casting of void pointers.
@@ -178,19 +178,19 @@ public:
template <class Derived, class Base>
void_caster_primitive<Derived, Base>::void_caster_primitive() :
void_caster(
& type_info_implementation<Derived>::type::get_const_instance(),
& type_info_implementation<Base>::type::get_const_instance(),
- // note:I wanted to display from 0 here, but at least one compiler
+ // note:I wanted to displace from 0 here, but at least one compiler
// treated 0 by not shifting it at all.
reinterpret_cast<std::ptrdiff_t>(
static_cast<Derived *>(
- reinterpret_cast<Base *>(1)
+ reinterpret_cast<Base *>(8)
)
- ) - 1
+ ) - 8
)
{
recursive_register();
}
template <class Derived, class Base>
@@ -245,13 +245,13 @@ void_caster_virtual_base<Derived,Base>::~void_caster_virtual_base(){
template <class Derived, class Base>
struct void_caster_base :
public void_caster
{
typedef
- BOOST_DEDUCED_TYPENAME mpl::eval_if<boost::is_virtual_base_of<Base,Derived>,
+ typename mpl::eval_if<boost::is_virtual_base_of<Base,Derived>,
mpl::identity<
void_cast_detail::void_caster_virtual_base<Derived, Base>
>
,// else
mpl::identity<
void_cast_detail::void_caster_primitive<Derived, Base>
@@ -265,13 +265,13 @@ template<class Derived, class Base>
BOOST_DLLEXPORT
inline const void_cast_detail::void_caster & void_cast_register(
Derived const * /* dnull = NULL */,
Base const * /* bnull = NULL */
){
typedef
- BOOST_DEDUCED_TYPENAME mpl::eval_if<boost::is_virtual_base_of<Base,Derived>,
+ typename mpl::eval_if<boost::is_virtual_base_of<Base,Derived>,
mpl::identity<
void_cast_detail::void_caster_virtual_base<Derived, Base>
>
,// else
mpl::identity<
void_cast_detail::void_caster_primitive<Derived, Base>