|
@@ -31,7 +31,8 @@ int main()
|
|
|
typedef std::hash<T> H;
|
|
|
static_assert((std::is_same<H::argument_type, T>::value), "" );
|
|
|
static_assert((std::is_same<H::result_type, std::size_t>::value), "" );
|
|
|
-
|
|
|
+ ASSERT_NOEXCEPT(H()(T()));
|
|
|
+
|
|
|
bool ba[] = {true, false, true, true, false};
|
|
|
T vb(std::begin(ba), std::end(ba));
|
|
|
H h;
|
|
@@ -43,6 +44,7 @@ int main()
|
|
|
typedef std::hash<T> H;
|
|
|
static_assert((std::is_same<H::argument_type, T>::value), "" );
|
|
|
static_assert((std::is_same<H::result_type, std::size_t>::value), "" );
|
|
|
+ ASSERT_NOEXCEPT(H()(T()));
|
|
|
bool ba[] = {true, false, true, true, false};
|
|
|
T vb(std::begin(ba), std::end(ba));
|
|
|
H h;
|