Fix for old versions of Boost.

No support for BOOST_STATIC_ASSERT_MSG before Boost 1.46.
This commit is contained in:
Thomas Geymayer
2014-06-03 20:34:21 +02:00
parent c4e0014d74
commit 7080f919e9

View 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;