Skip to content

Commit

Permalink
[range.istream, range.take.while.sentinel] Harmonize default member i…
Browse files Browse the repository at this point in the history
…nitializer (#3605)

for pointers to use "= nullptr", not value-initialization.
  • Loading branch information
JohelEGP authored and jensmaurer committed Jan 5, 2020
1 parent 45abe67 commit 6e769c3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/ranges.tex
Original file line number Diff line number Diff line change
Expand Up @@ -2621,7 +2621,7 @@

private:
struct @\exposid{iterator}@; // \expos
basic_istream<CharT, Traits>* @\exposid{stream_}@{}; // \expos
basic_istream<CharT, Traits>* @\exposid{stream_}@ = nullptr; // \expos
Val @\exposid{object_}@ = Val(); // \expos
};
}
Expand Down Expand Up @@ -2690,7 +2690,7 @@
friend bool operator==(const @\exposid{iterator}@& x, default_sentinel_t);

private:
basic_istream_view* @\exposid{parent_}@{}; // \expos
basic_istream_view* @\exposid{parent_}@ = nullptr; // \expos
};
}
\end{codeblock}
Expand Down Expand Up @@ -4400,7 +4400,7 @@
using @\exposid{base-t}@ = conditional_t<Const, const V, V>; // \expos

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

0 comments on commit 6e769c3

Please sign in to comment.