diff --git a/stl/inc/iomanip b/stl/inc/iomanip index 47b44fce3d..2ffe9c4ec5 100644 --- a/stl/inc/iomanip +++ b/stl/inc/iomanip @@ -57,8 +57,6 @@ struct _Monobj { // store reference to monetary amount _Money& _Val; // the monetary amount reference bool _Intl; // international flag - - _Monobj& operator=(const _Monobj&) = delete; }; template @@ -195,8 +193,6 @@ struct _Quote_in { // store reference to string _Mystr& _Str; // reference to string _Elem _Delim; // delimiter element _Elem _Escape; // escape element - - _Quote_in& operator=(const _Quote_in&) = delete; }; template @@ -204,6 +200,8 @@ struct _Quote_out { // store pointer/length for string _Quote_out(const _Elem* _Ptr_obj, _Sizet _Size_obj, _Elem _Delim_obj, _Elem _Escape_obj) : _Ptr(_Ptr_obj), _Size(_Size_obj), _Delim(_Delim_obj), _Escape(_Escape_obj) {} + _Quote_out(const _Quote_out&) = default; + const _Elem* _Ptr; // pointer to string _Sizet _Size; // length of string _Elem _Delim; // delimiter element diff --git a/stl/inc/regex b/stl/inc/regex index 61d7a4d868..07e953f955 100644 --- a/stl/inc/regex +++ b/stl/inc/regex @@ -201,8 +201,6 @@ struct _Cmp_icase { // functor to compare for case-insensitive equality } const _RxTraits& _Traits; - - _Cmp_icase& operator=(const _Cmp_icase&) = delete; }; template @@ -216,8 +214,6 @@ struct _Cmp_collate { // functor to compare for locale-specific equality } const _RxTraits& _Traits; - - _Cmp_collate& operator=(const _Cmp_collate&) = delete; }; struct _Regex_traits_base { // base of all regular expression traits diff --git a/tests/std/tests/Dev10_561430_list_and_tree_leaks/test.cpp b/tests/std/tests/Dev10_561430_list_and_tree_leaks/test.cpp index 9c21039cc7..8d2f66b285 100644 --- a/tests/std/tests/Dev10_561430_list_and_tree_leaks/test.cpp +++ b/tests/std/tests/Dev10_561430_list_and_tree_leaks/test.cpp @@ -29,10 +29,14 @@ template struct Mallocator { typedef T value_type; - Mallocator() {} + Mallocator() = default; + Mallocator(const Mallocator&) = default; + template Mallocator(const Mallocator&) {} + Mallocator& operator=(const Mallocator&) = delete; + bool operator==(const Mallocator&) const { return true; } @@ -63,8 +67,6 @@ struct Mallocator { free(p); } - - Mallocator& operator=(const Mallocator&) = delete; }; template diff --git a/tests/std/tests/Dev11_0863628_atomic_compare_exchange/test.cpp b/tests/std/tests/Dev11_0863628_atomic_compare_exchange/test.cpp index 6e9a163345..63ee746546 100644 --- a/tests/std/tests/Dev11_0863628_atomic_compare_exchange/test.cpp +++ b/tests/std/tests/Dev11_0863628_atomic_compare_exchange/test.cpp @@ -150,6 +150,7 @@ void helper2() { const Atom const_atom(obj); bool b = const_atom.is_lock_free(); + (void) b; atom.store(obj); atom.store(obj, memory_order_seq_cst); diff --git a/tests/std/tests/VSO_0191296_allocator_construct/test.compile.pass.cpp b/tests/std/tests/VSO_0191296_allocator_construct/test.compile.pass.cpp index 1d312ad3bb..8036e20e90 100644 --- a/tests/std/tests/VSO_0191296_allocator_construct/test.compile.pass.cpp +++ b/tests/std/tests/VSO_0191296_allocator_construct/test.compile.pass.cpp @@ -134,6 +134,8 @@ struct construct_applying_allocator { template construct_applying_allocator(const construct_applying_allocator&) {} + construct_applying_allocator& operator=(const construct_applying_allocator&) = default; + using propagate_on_container_copy_assignment = std::bool_constant; using propagate_on_container_move_assignment = std::bool_constant; using propagate_on_container_swap = std::bool_constant; diff --git a/tests/tr1/tests/functional/test.cpp b/tests/tr1/tests/functional/test.cpp index 1a3ed6e0c2..f4a7115a01 100644 --- a/tests/tr1/tests/functional/test.cpp +++ b/tests/tr1/tests/functional/test.cpp @@ -223,6 +223,7 @@ void test_main() { // test basic workings of functional definitions test_pointer(first, last, dest); CSTD size_t hash_val = STD hash()(3); + (void) hash_val; hash_val = STD hash()(3.0); hash_val = STD hash()(STD string("abc")); diff --git a/tests/tr1/tests/memory3/test.cpp b/tests/tr1/tests/memory3/test.cpp index ec71858624..c0a2e6987d 100644 --- a/tests/tr1/tests/memory3/test.cpp +++ b/tests/tr1/tests/memory3/test.cpp @@ -233,6 +233,7 @@ void t_hash() { // test hash functions typedef STD shared_ptr sptr_t; sptr_t sp0; CSTD size_t hash_val = STD hash()(sp0); + (void) hash_val; typedef STD unique_ptr uptr_t; uptr_t up0; diff --git a/tests/tr1/tests/string1/test.cpp b/tests/tr1/tests/string1/test.cpp index b12c795dac..949216ec1e 100644 --- a/tests/tr1/tests/string1/test.cpp +++ b/tests/tr1/tests/string1/test.cpp @@ -554,6 +554,7 @@ void test_main() { // test basic workings of string definitions hash_val = STD hash()(STD wstring(L"abc")); hash_val = STD hash()(STD u16string(3, 'x')); hash_val = STD hash()(STD u32string(3, 'x')); + (void) hash_val; } {