Update toml/traits.hpp

Co-authored-by: Toru Niina <niina.toru.68u@gmail.com>
This commit is contained in:
Philip Top 2021-11-24 06:40:09 -08:00 committed by GitHub
parent 84f61f7dc8
commit 9c1708c988
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -282,7 +282,7 @@ using enable_if_t = typename std::enable_if<B, T>::type;
// ---------------------------------------------------------------------------
// return_type_of_t
#if __cplusplus >= 201703L && defined(__cpp_lib_is_invocable) && __cpp_lib_is_invocable>=201710
#if __cplusplus >= 201703L && defined(__cpp_lib_is_invocable) && __cpp_lib_is_invocable>=201703
template<typename F, typename ... Args>
using return_type_of_t = std::invoke_result_t<F, Args...>;