|
Boost : |
From: David Abrahams (david.abrahams_at_[hidden])
Date: 2002-01-16 17:26:08
I think we need to check for Base == void; this case reports that void is a
base of BB:
#include <boost/type_traits/conversion_traits.hpp>
#include <iostream>
struct BB {};
#define print(x) std::cout << #x << " : " << x << std::endl
int main()
{
print((boost::is_base_and_derived<void,BB>::value));
}
===================================================
David Abrahams, C++ library designer for hire
resume: http://users.rcn.com/abrahams/resume.html
C++ Booster (http://www.boost.org)
email: david.abrahams_at_[hidden]
===================================================
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk