@@ -44,8 +44,8 @@ int main(int, char**) {
44
44
}
45
45
check_new_delete_called ();
46
46
47
- try { // Throw in vector(size_type, const allocator_type&) from allocator
48
- throwing_allocator<int > alloc (false , true ); // throw on copy only
47
+ try { // Throw in vector(size_type, const allocator_type&) from allocator
48
+ throwing_allocator<int > alloc (/* throw_on_ctor = */ false , /* throw_on_copy = */ true );
49
49
AllocVec get_alloc (0 , alloc);
50
50
} catch (int ) {
51
51
}
@@ -106,7 +106,7 @@ int main(int, char**) {
106
106
107
107
try { // Throw in vector(InputIterator, InputIterator, const allocator_type&) from allocator
108
108
int a[] = {1 , 2 };
109
- throwing_allocator<int > alloc (false , true ); // throw on copy only
109
+ throwing_allocator<int > alloc (/* throw_on_ctor = */ false , /* throw_on_copy = */ true );
110
110
AllocVec vec (cpp17_input_iterator<int *>(a), cpp17_input_iterator<int *>(a + 2 ), alloc);
111
111
} catch (int ) {
112
112
// FIXME: never called.
@@ -115,7 +115,7 @@ int main(int, char**) {
115
115
116
116
try { // Throw in vector(InputIterator, InputIterator, const allocator_type&) from allocator
117
117
int a[] = {1 , 2 };
118
- throwing_allocator<int > alloc (false , true ); // throw on copy only
118
+ throwing_allocator<int > alloc (/* throw_on_ctor = */ false , /* throw_on_copy = */ true );
119
119
AllocVec vec (forward_iterator<int *>(a), forward_iterator<int *>(a + 2 ), alloc);
120
120
} catch (int ) {
121
121
// FIXME: never called.
0 commit comments