boost::is_base_of и incomplete type
От: Vain Россия google.ru
Дата: 28.01.08 14:27
Оценка:
Хочу вот это:
#include "boost/type_traits/is_base_of.hpp"

template<class T>
struct B {
  static int _error[boost::is_base_of<B,T>::value ? 1 : -1]; //error C2118: negative subscript
};

struct A : B<A> {};

Может всё-таки можно?
[In theory there is no difference between theory and practice. In
practice there is.]
[Даю очевидные ответы на риторические вопросы]
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.