Boost logo

Boost :

From: Jens Maurer (Jens.Maurer_at_[hidden])
Date: 2001-02-14 14:01:16

Daniel Frey wrote:
> template< class T > class pointer : parent_of< Object, T >

The feature seems to be already implemented:

#include <boost/static_assert.hpp>
#include <boost/type_traits.hpp>

template<class T> class pointer
  BOOST_STATIC_ASSERT((boost::is_convertible<T*, Object*>::value));

Or am I missing something?
(Note that the additional parentheses are required so that the ","
is not interpreted as separating preprocessor arguments.)

Jens Maurer

Boost list run by bdawes at, gregod at, cpdaniel at, john at