X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fmeta.h;h=51bc924405d3bdc7861b054801f9f742ec90e226;hb=465ac6c7ceda80ce7e2f6e3f7b6901ce0921406e;hp=ac6ec1be2029e18b0a22c8f692be796687f2e03d;hpb=41e78ee91ca058ead90fa1c8ee4339d2ef1b0f31;p=libs%2Fdatafile.git diff --git a/source/meta.h b/source/meta.h index ac6ec1b..51bc924 100644 --- a/source/meta.h +++ b/source/meta.h @@ -18,6 +18,18 @@ struct CheckCollectionType: Sfinae template struct NeedsCollection: Sfinae::Evaluate { }; +/** +Helper struct to determine whether a type has a Loader class. +*/ +struct CheckLoader: Sfinae +{ + template + static Yes f(typename T::Loader *); + using Sfinae::f; +}; + +template struct HasLoader: Sfinae::Evaluate { }; + } // namespace DataFile } // namespace Msp