Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Made Boost version-specific changes more flexible, as they reportedly…
… are needed for 1.62 as well.
  • Loading branch information
geoffthemedio committed Oct 20, 2016
1 parent c5bcccf commit 6b971f6
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions universe/Building.h
Expand Up @@ -69,11 +69,11 @@ class FO_COMMON_API Building : public UniverseObject {
template <class T> friend void boost::python::detail::value_destroyer<false>::execute(T const volatile* p);
template <class T> friend void boost::checked_delete(T* x);

#if BOOST_VERSION == 106100
#if BOOST_VERSION >= 106100
public:
#endif
~Building() {}
#if BOOST_VERSION == 106100
#if BOOST_VERSION >= 106100
protected:
#endif

Expand Down
4 changes: 2 additions & 2 deletions universe/Field.h
Expand Up @@ -48,11 +48,11 @@ class FO_COMMON_API Field : public UniverseObject {
template <class T> friend void boost::python::detail::value_destroyer<false>::execute(T const volatile* p);
template <class T> friend void boost::checked_delete(T* x);

#if BOOST_VERSION == 106100
#if BOOST_VERSION >= 106100
public:
#endif
~Field() {}
#if BOOST_VERSION == 106100
#if BOOST_VERSION >= 106100
protected:
#endif

Expand Down
4 changes: 2 additions & 2 deletions universe/Fleet.h
Expand Up @@ -150,11 +150,11 @@ class FO_COMMON_API Fleet : public UniverseObject {
template <class T> friend void boost::python::detail::value_destroyer<false>::execute(T const volatile* p);
template <class T> friend void boost::checked_delete(T* x);

#if BOOST_VERSION == 106100
#if BOOST_VERSION >= 106100
public:
#endif
~Fleet() {}
#if BOOST_VERSION == 106100
#if BOOST_VERSION >= 106100
protected:
#endif

Expand Down
4 changes: 2 additions & 2 deletions universe/Planet.h
Expand Up @@ -128,11 +128,11 @@ class FO_COMMON_API Planet :
template <class T> friend void boost::python::detail::value_destroyer<false>::execute(T const volatile* p);
template <class T> friend void boost::checked_delete(T* x);

#if BOOST_VERSION == 106100
#if BOOST_VERSION >= 106100
public:
#endif
~Planet() {}
#if BOOST_VERSION == 106100
#if BOOST_VERSION >= 106100
protected:
#endif

Expand Down
4 changes: 2 additions & 2 deletions universe/Ship.h
Expand Up @@ -104,11 +104,11 @@ class FO_COMMON_API Ship : public UniverseObject {
template <class T> friend void boost::python::detail::value_destroyer<false>::execute(T const volatile* p);
template <class T> friend void boost::checked_delete(T* x);

#if BOOST_VERSION == 106100
#if BOOST_VERSION >= 106100
public:
#endif
~Ship() {}
#if BOOST_VERSION == 106100
#if BOOST_VERSION >= 106100
protected:
#endif

Expand Down
4 changes: 2 additions & 2 deletions universe/System.h
Expand Up @@ -134,11 +134,11 @@ class FO_COMMON_API System : public UniverseObject {
template <class T> friend void boost::python::detail::value_destroyer<false>::execute(T const volatile* p);
template <class T> friend void boost::checked_delete(T* x);

#if BOOST_VERSION == 106100
#if BOOST_VERSION >= 106100
public:
#endif
~System() {}
#if BOOST_VERSION == 106100
#if BOOST_VERSION >= 106100
protected:
#endif

Expand Down

0 comments on commit 6b971f6

Please sign in to comment.