|
@@ -11,14 +11,14 @@
|
|
|
|
|
|
// ~multimap() // implied noexcept;
|
|
|
|
|
|
+// UNSUPPORTED: c++98, c++03
|
|
|
+
|
|
|
#include <map>
|
|
|
#include <cassert>
|
|
|
|
|
|
#include "MoveOnly.h"
|
|
|
#include "test_allocator.h"
|
|
|
|
|
|
-#if __has_feature(cxx_noexcept)
|
|
|
-
|
|
|
template <class T>
|
|
|
struct some_comp
|
|
|
{
|
|
@@ -27,11 +27,8 @@ struct some_comp
|
|
|
bool operator()(const T&, const T&) const { return false; }
|
|
|
};
|
|
|
|
|
|
-#endif
|
|
|
-
|
|
|
int main()
|
|
|
{
|
|
|
-#if __has_feature(cxx_noexcept)
|
|
|
typedef std::pair<const MoveOnly, MoveOnly> V;
|
|
|
{
|
|
|
typedef std::multimap<MoveOnly, MoveOnly> C;
|
|
@@ -49,5 +46,4 @@ int main()
|
|
|
typedef std::multimap<MoveOnly, MoveOnly, some_comp<MoveOnly>> C;
|
|
|
static_assert(!std::is_nothrow_destructible<C>::value, "");
|
|
|
}
|
|
|
-#endif
|
|
|
}
|