Addition to prev. revision [#METR-2944].

This commit is contained in:
Alexey Milovidov 2016-07-10 02:40:15 +03:00
parent 3a6208c6d0
commit 03ed8fc58e

View File

@ -28,6 +28,7 @@ public:
FunctionPtr get(const String & name, const Context & context) const; /// Throws an exception if not found.
FunctionPtr tryGet(const String & name, const Context & context) const; /// Returns nullptr if not found.
/// No locking, you must register all functions before usage of get, tryGet.
template <typename F> void registerFunction()
{
static_assert(std::is_same<decltype(&F::create), Creator>::value, "F::create has incorrect type");