From 7080f919e97b4343703de664ed0c888634d9f3a9 Mon Sep 17 00:00:00 2001 From: Thomas Geymayer Date: Tue, 3 Jun 2014 20:34:21 +0200 Subject: [PATCH] Fix for old versions of Boost. No support for BOOST_STATIC_ASSERT_MSG before Boost 1.46. --- simgear/nasal/cppbind/Ghost.hxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/simgear/nasal/cppbind/Ghost.hxx b/simgear/nasal/cppbind/Ghost.hxx index 3cefc8de..42077e18 100644 --- a/simgear/nasal/cppbind/Ghost.hxx +++ b/simgear/nasal/cppbind/Ghost.hxx @@ -232,10 +232,8 @@ namespace nasal class Ghost: public internal::GhostMetadata { - BOOST_STATIC_ASSERT_MSG( - (shared_ptr_traits::is_strong::value), - "Shared pointer required for Ghost! (no weak pointer!)" - ); + // Shared pointer required for Ghost (no weak pointer!) + BOOST_STATIC_ASSERT((shared_ptr_traits::is_strong::value)); public: typedef typename T::element_type raw_type; -- 2.39.5