We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b23fc2c commit cd74ebaCopy full SHA for cd74eba
libcxx/test/std/containers/sequences/vector/common.h
@@ -20,7 +20,7 @@ struct throwing_t {
20
int* throw_after_n_ = nullptr;
21
throwing_t() { throw 0; }
22
23
- throwing_t(int& throw_after_n) : throw_after_n_(&throw_after_n) {
+ explicit throwing_t(int& throw_after_n) : throw_after_n_(&throw_after_n) {
24
if (throw_after_n == 0)
25
throw 0;
26
--throw_after_n;
@@ -95,7 +95,7 @@ struct throwing_iterator {
95
int i_;
96
T v_;
97
98
- throwing_iterator(int i = 0, const T& v = T()) : i_(i), v_(v) {}
+ explicit throwing_iterator(int i = 0, const T& v = T()) : i_(i), v_(v) {}
99
100
reference operator*() {
101
if (i_ == 1)
0 commit comments