Boost logo

Boost :

From: Rozental, Gennadiy (gennadiy.rozental_at_[hidden])
Date: 2003-01-28 14:42:20


Hi,

Is there neat way with MPL to implement conditional expessions without
introducing aditional structures. For example:

template<typename Container>
void
foo( Container& c )
{
// pseudo code
   [if ( c is reservable , i.e. has method reserve )
       c.reserve( 100 );
   ]
   ...
}

Gennadiy.


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