diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-12-11 16:30:39 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-12-11 16:30:39 +0900 |
commit | 2db8593c40930c5b511678326467073bdc38384f (patch) | |
tree | a6f9bbd921261da154ee528c232fa57f51c11487 /lib/util.cpp | |
parent | f0bd24a830aef3405994849ce413e2d488f75429 (diff) | |
parent | 8f39d870759de362d5ac911d6554347fb3b46759 (diff) | |
download | libquotient-2db8593c40930c5b511678326467073bdc38384f.tar.gz libquotient-2db8593c40930c5b511678326467073bdc38384f.zip |
Merge branch 'master' into kitsune-lazy-loading
Diffstat (limited to 'lib/util.cpp')
-rw-r--r-- | lib/util.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/util.cpp b/lib/util.cpp index 5e7644a1..e22a1df5 100644 --- a/lib/util.cpp +++ b/lib/util.cpp @@ -112,10 +112,12 @@ static_assert(is_callable_v<Fo1>, "Test is_callable<> with function object 1"); static_assert(std::is_same<fn_arg_t<Fo1>, int>(), "Test fn_arg_t defaulting to first argument"); +#if (!defined(_MSC_VER) || _MSC_VER >= 1910) static auto l = [] { return 1; }; static_assert(is_callable_v<decltype(l)>, "Test is_callable_v<> with lambda"); static_assert(std::is_same<fn_return_t<decltype(l)>, int>::value, "Test fn_return_t<> with lambda"); +#endif template <typename T> struct fn_object |