Boost logo

Boost :

From: Daniel Frey (daniel.frey_at_[hidden])
Date: 2002-12-17 10:27:07


Rani Sharoni wrote:
>
> In the same fashion - I think that if type is not cv void, not reference and
> not convertible to bool (via standard conversion) then it's class type.

Hm, could you show an implementation? I think that the "convertible to
bool" might be a problem for classes with operator bool(), also I'm not
sure how you would detect:

is_class< int( int, int ) >::value

correctly with your approach...

> It might be useful implementation for compliers on which the SFIAE technique
> to detect class type doesn't work.

What is SFIAE? Is it the

  template< typename > no_type test( ... );
  template< typename T > yes_type test( void (T::*)() );

stuff from Paul Mensonides?

Regards, Daniel

-- 
Daniel Frey
aixigo AG - financial training, research and technology
Schloß-Rahe-Straße 15, 52072 Aachen, Germany
fon: +49 (0)241 936737-42, fax: +49 (0)241 936737-99
eMail: daniel.frey_at_[hidden], web: http://www.aixigo.de

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