$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Daniel Wallin (dalwan01_at_[hidden])
Date: 2004-04-26 16:36:36
Robert Ramey wrote:
> Is there a type traits guru that can explain to me why the following doesn't
> work as I expect. It's got to be something very, very obvious but I can't
> see it.
remove_pointer<> is a metafunction. You need to get the result through
the nested 'type'.
remove_pointer<int*>::type x = 3;
[snip]
> // this fails !?
> BOOST_STATIC_ASSERT((boost::is_base_and_derived<
> boost::remove_pointer<Base1 *>::type,
^^^^^^
> boost::remove_pointer<Derived *>::type
^^^^^^
> >::value));
> }
-- Daniel Wallin