Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2002-11-07 17:15:30


I notice that our type_traits headers still define:

   typedef char yes_type;
   typedef double no_type;

Which is non-portable w.r.t. sizeof() differences. Is there any reason
we can't change no_type to

   char (&)[2]

or

    struct { char[2] x; } // if it needs to be constructed

?

-- 
                       David Abrahams
   dave_at_[hidden] * http://www.boost-consulting.com
Boost support, enhancements, training, and commercial distribution

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