add assert
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@315 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
parent
c640203744
commit
cdb722ec38
1 changed files with 2 additions and 0 deletions
|
@ -336,6 +336,8 @@ namespace Loki
|
|||
std::swap(next_, rhs.next_);
|
||||
std::swap(prev_->next_, rhs.prev_->next_);
|
||||
std::swap(next_->prev_, rhs.next_->prev_);
|
||||
|
||||
assert( next_ == this ? prev_ == this : prev_ != this);
|
||||
}
|
||||
|
||||
enum { destructiveCopy = false };
|
||||
|
|
Loading…
Add table
Reference in a new issue