Boost logo

Boost :

From: Douglas Paul Gregor (gregod_at_[hidden])
Date: 2003-11-25 11:24:41


On Tue, 25 Nov 2003, Sam Partington wrote:
> I've been playing with the idea of selecting from either implementation as
> suitable :
[snip]
> template<class T, class B = ::boost::detail::empty_base>
> class the_bool_testable :
> public select_bool_impl<safe_bool<T, B>,
> bool_testable<T, B>,
> boost::is_convertible<T,
> int>::value
> >

This can't work, because it's impossible for the type T to be defined, so
is_convertible<T, int> won't give a meaningful result.

        Doug


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