- template<typename L, typename A0, typename A1, typename A2, typename A3>
- void add(const std::string &k, void (L::*func)(A0, A1, A2, A3))
- { add(k, new LoaderFunc4<L, A0, A1, A2, A3>(func)); }
-
- template<typename L, typename A0, typename A1, typename A2, typename A3, typename A4>
- void add(const std::string &k, void (L::*func)(A0, A1, A2, A3, A4))
- { add(k, new LoaderFunc5<L, A0, A1, A2, A3, A4>(func)); }
+ template<typename L, typename B0, typename... Args>
+ void add(const std::string &k, void (L::*func)(B0, Args...), B0 &&b0)
+ { add(k, new LoaderFuncNBound1<L, B0, Args...>(func, std::forward<B0>(b0))); }