Prevent dynamically bind references to null pointer.

This is a manually-generated change. Ensure that behavior and style are
preserved by carefully inspecting the diff.
This commit is contained in:
Michael Hemmer 2020-04-26 07:43:22 +02:00 committed by GitHub
parent c5af2b25f3
commit 704cdab314
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -134,7 +134,7 @@ namespace internal {
typedef std::bidirectional_iterator_tag iterator_category;
In_place_list_const_iterator() : node(0) {}
In_place_list_const_iterator( Iterator i) : node(&*i) {}
In_place_list_const_iterator(Iterator i) : node(i.operator->()) {}
In_place_list_const_iterator(const T* x) : node(x) {}
bool operator==( const Self& x) const { return node == x.node; }