mirror of
https://github.com/boostorg/unordered.git
synced 2025-07-31 20:04:29 +02:00
Fix a clumsy error.
[SVN r45261]
This commit is contained in:
@@ -161,7 +161,7 @@ namespace test
|
|||||||
|
|
||||||
void push_front(value_type const& v) {
|
void push_front(value_type const& v) {
|
||||||
data_.first_ = new node(v, data_.first_);
|
data_.first_ = new node(v, data_.first_);
|
||||||
if(data_.size_) data_.last_ptr_ = &(*data_.last_ptr_)->next_;
|
if(!data_.size_) data_.last_ptr_ = &(*data_.last_ptr_)->next_;
|
||||||
++data_.size_;
|
++data_.size_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user