Boost logo

Boost :

From: Markus Werle (numerical.simulation_at_[hidden])
Date: 2003-09-11 06:11:00


Hamish Mackenzie wrote:

> Yes this is a problem. It would be handy to have a way to
> check the type so
>
> void f( const optional< some_big_class > & );
>
> would become
>
> template< typename T >
> void f( const T & )
> {
> BOOST_STATIC_ASSERT(
> is_optional_version_of< some_big_class, T >::value );
> ...
> }

Probably overloading using boost::enable_if is a solution in this case.

-- 
Build your own Expression Template Library with Daixtrose!
Visit http://daixtrose.sourceforge.net/ 

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk