]> git.mxchange.org Git - simgear.git/commitdiff
Fix for old versions of Boost.
authorThomas Geymayer <tomgey@gmail.com>
Tue, 3 Jun 2014 18:34:21 +0000 (20:34 +0200)
committerThomas Geymayer <tomgey@gmail.com>
Tue, 3 Jun 2014 18:34:21 +0000 (20:34 +0200)
No support for BOOST_STATIC_ASSERT_MSG before Boost 1.46.

simgear/nasal/cppbind/Ghost.hxx

index 3cefc8de93b3724135f1ec73a46582341e6327a1..42077e183ab38aa8e2aa1357808bc517d7fb092f 100644 (file)
@@ -232,10 +232,8 @@ namespace nasal
   class Ghost:
     public internal::GhostMetadata
   {
-      BOOST_STATIC_ASSERT_MSG(
-        (shared_ptr_traits<T>::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<T>::is_strong::value));
 
     public:
       typedef typename T::element_type                              raw_type;