Skip to content

Commit 6e769c3

Browse files
JohelEGPjensmaurer
authored andcommitted
[range.istream, range.take.while.sentinel] Harmonize default member initializer (#3605)
for pointers to use "= nullptr", not value-initialization.
1 parent 45abe67 commit 6e769c3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/ranges.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2621,7 +2621,7 @@
26212621

26222622
private:
26232623
struct @\exposid{iterator}@; // \expos
2624-
basic_istream<CharT, Traits>* @\exposid{stream_}@{}; // \expos
2624+
basic_istream<CharT, Traits>* @\exposid{stream_}@ = nullptr; // \expos
26252625
Val @\exposid{object_}@ = Val(); // \expos
26262626
};
26272627
}
@@ -2690,7 +2690,7 @@
26902690
friend bool operator==(const @\exposid{iterator}@& x, default_sentinel_t);
26912691

26922692
private:
2693-
basic_istream_view* @\exposid{parent_}@{}; // \expos
2693+
basic_istream_view* @\exposid{parent_}@ = nullptr; // \expos
26942694
};
26952695
}
26962696
\end{codeblock}
@@ -4400,7 +4400,7 @@
44004400
using @\exposid{base-t}@ = conditional_t<Const, const V, V>; // \expos
44014401

44024402
sentinel_t<@\exposid{base-t}@> @\exposid{end_}@ = sentinel_t<@\exposid{base-t}@>(); // \expos
4403-
const Pred* @\exposid{pred_}@{}; // \expos
4403+
const Pred* @\exposid{pred_}@ = nullptr; // \expos
44044404
public:
44054405
@\exposid{sentinel}@() = default;
44064406
constexpr explicit @\exposid{sentinel}@(sentinel_t<@\exposid{base-t}@> end, const Pred* pred);

0 commit comments

Comments
 (0)