forked from boostorg/unordered
Unordered: Fix gcc warning and re-enable warnings-as-errors for gcc.
[SVN r75599]
This commit is contained in:
@ -174,13 +174,13 @@ namespace boost { namespace unordered { namespace iterator_detail {
|
|||||||
}
|
}
|
||||||
|
|
||||||
iterator& operator++() {
|
iterator& operator++() {
|
||||||
node_ = node_ = static_cast<node_pointer>(node_->next_);
|
node_ = static_cast<node_pointer>(node_->next_);
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
iterator operator++(int) {
|
iterator operator++(int) {
|
||||||
iterator tmp(node_);
|
iterator tmp(node_);
|
||||||
node_ = node_ = static_cast<node_pointer>(node_->next_);
|
node_ = static_cast<node_pointer>(node_->next_);
|
||||||
return tmp;
|
return tmp;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -242,7 +242,7 @@ namespace boost { namespace unordered { namespace iterator_detail {
|
|||||||
|
|
||||||
c_iterator operator++(int) {
|
c_iterator operator++(int) {
|
||||||
c_iterator tmp(node_);
|
c_iterator tmp(node_);
|
||||||
node_ = node_ = static_cast<node_pointer>(node_->next_);
|
node_ = static_cast<node_pointer>(node_->next_);
|
||||||
return tmp;
|
return tmp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -14,8 +14,8 @@ project unordered-test/unordered
|
|||||||
#<toolset>gcc:<define>_GLIBCXX_DEBUG
|
#<toolset>gcc:<define>_GLIBCXX_DEBUG
|
||||||
#<toolset>darwin:<define>_GLIBCXX_DEBUG
|
#<toolset>darwin:<define>_GLIBCXX_DEBUG
|
||||||
#<toolset>msvc:<warnings-as-errors>on
|
#<toolset>msvc:<warnings-as-errors>on
|
||||||
#<toolset>gcc:<warnings-as-errors>on
|
<toolset>gcc:<warnings-as-errors>on
|
||||||
#<toolset>darwin:<warnings-as-errors>on
|
<toolset>darwin:<warnings-as-errors>on
|
||||||
;
|
;
|
||||||
|
|
||||||
test-suite unordered
|
test-suite unordered
|
||||||
|
Reference in New Issue
Block a user