我怎么static_assert样这个?如果没有C++或C++ 11中的新功能,Boost可能会支持它吗?
static_assert
template<T> struct foo {}; template<FooType> struct bar { static_assert(FooType is indeed foo<T> for some T,"failure"); //how? };
c++ templates boost c++11
boost ×1
c++ ×1
c++11 ×1
templates ×1