$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Eric Friedman (ebf_at_[hidden])
Date: 2003-10-28 20:38:50
How important is it that assertion below always be true? (Or stated
negatively, how difficult would life be if it were sometimes not true?)
template <typename T>
void f(any & a1, any & a2)
{
T* p1 = any_cast<T>( &a1 );
T* p2 = any_cast<T>( &a2 );
assert( p1 == 0 || p1 != p2 ); // ***
}
Thanks,
Eric