"David Abrahams"
"Jonathan Turkanis"
writes: "Angus Leeming"
wrote in message news:ch7h3d$466$1@sea.gmane.org... I'm trying to ascertain whether a given class is, or is derived from, std::basic_ostream, but I've ground to a halt.
Note that with the current cvs it should not be necessary to write
mpl::and_< mpl::bool_
, ... You can simply say
mpl::and_< has_char_type<U>, ...
It's hard for me to understand why you would need has_xxx for this purpose, or how you would use it.
Well, you could look at the attachment .... ;-)
An arbitrary type T is equal to or derived from a specialization of
std::basic_ostream iff (almost):
(i) it has a member type char_type;
(ii) it has a member type traits_type; and
(iii) either:
(a) it is the same as basic_ostream