X-Git-Url: http://git.tdb.fi/?p=libs%2Fdatafile.git;a=blobdiff_plain;f=source%2Floader.h;fp=source%2Floader.h;h=7799a7eacb5dd404915f25cbfe87f0665f515436;hp=02caaaf9ee75dce3ca573cf929611124e551053f;hb=b0186e8878204a29e25ca4063c1dac4dea908508;hpb=c308213edfde6e137fde273678c4af2520566826 diff --git a/source/loader.h b/source/loader.h index 02caaaf..7799a7e 100644 --- a/source/loader.h +++ b/source/loader.h @@ -120,6 +120,14 @@ protected: { add(k, new LoaderFunc5(func)); } #endif +#if __cplusplus>=201103L + /** Adds a keyword that is loaded by calling a function with a bound + first argument. */ + template + void add(const std::string &k, void (L::*func)(B0, Args...), const typename RemoveReference::Type &b0) + { add(k, new LoaderFuncNBound1(func, b0)); } +#endif + /** Adds a keyword that is loaded into a member of the loaded object. */ template void add(const std::string &k, T0 L::*p0)