diff --git a/src/uvw/lib.hpp b/src/uvw/lib.hpp index a268ea49..d060209d 100644 --- a/src/uvw/lib.hpp +++ b/src/uvw/lib.hpp @@ -4,6 +4,7 @@ #include #include #include +#include #include #include "loop.hpp" @@ -11,16 +12,6 @@ namespace uvw { -namespace details { - - -template struct IsFunc: std::false_type { }; -template struct IsFunc: std::true_type { }; - - -} - - /** * @brief The SharedLib class. * @@ -73,7 +64,7 @@ public: */ template F * sym(std::string name) { - static_assert(details::IsFunc::value, "!"); + static_assert(std::is_function::value, "!"); F *func; auto err = uv_dlsym(&lib, name.data(), reinterpret_cast(&func)); if(err) { func = nullptr; }