#include #include class foo{}; typedef boost::is_convertible< const std::auto_ptr, const foo> type; int main() { bool b=type::value; }