mirror of
https://github.com/boostorg/intrusive.git
synced 2025-08-03 06:24:44 +02:00
MSVC "assignment within conditional" warning fix
The latest MSVC 2019 issues a warning on this line. This change performs the assignment prior to the conditional.
This commit is contained in:
@@ -1014,7 +1014,8 @@ class bstree_algorithms : public bstree_algorithms_base<NodeTraits>
|
||||
while(x){
|
||||
++depth;
|
||||
y = x;
|
||||
x = (left_child = comp(key, x)) ?
|
||||
left_child = comp(key, x);
|
||||
x = left_child ?
|
||||
NodeTraits::get_left(x) : (prev = y, NodeTraits::get_right(x));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user