Helper struct to determine whether a Loader has a Collection typedef.
*/
template<typename T>
-struct NeedsCollection
+struct NeedsCollection: public Sfinae
{
- struct Yes { char c[2]; };
- struct No { char c; };
-
template<typename U>
static Yes f(typename U::Collection *);
template<typename U>
static No f(...);
- enum { value = (sizeof(f<T>(0))==sizeof(Yes)) };
+ enum { value = Evaluate<sizeof(f<T>(0))>::value };
};
class CollectionItemTypeBase;