diff --git a/include/orm/utils/helpers.hpp b/include/orm/utils/helpers.hpp index 63c8d1add..f510f7f1c 100644 --- a/include/orm/utils/helpers.hpp +++ b/include/orm/utils/helpers.hpp @@ -24,12 +24,12 @@ namespace Orm namespace Utils { /*! Tests if the std::hash can hash T with noexcept. */ - template + template struct IsNothrowHashable : std::false_type {}; /*! Tests if the std::hash can hash T with noexcept. */ - template + template struct IsNothrowHashable()( std::declval()))>> : std::bool_constant()(std::declval()))> @@ -59,7 +59,7 @@ namespace Utils /*! Call repeatedly to incrementally create a hash value from several variables. */ - template + template inline static std::size_t &hashCombine(std::size_t &seed, const T &value) noexcept(IsNothrowHashable>::value); diff --git a/include/orm/utils/notnull.hpp b/include/orm/utils/notnull.hpp index 7bfa27f5e..167be9710 100644 --- a/include/orm/utils/notnull.hpp +++ b/include/orm/utils/notnull.hpp @@ -191,7 +191,7 @@ TINYORM_END_COMMON_NAMESPACE namespace std { - template + template struct hash> { std::size_t operator()(const Orm::Utils::NotNull &value) const