Skip to content

Commit 12e4945

Browse files
committed
WIP
1 parent 8c2b37e commit 12e4945

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/util/sharing_map.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1361,7 +1361,7 @@ ::replace(const key_type &k, valueU &&m)
13611361
nodet &lp = get_leaf_node(k);
13621362

13631363
INVARIANT(
1364-
!value_equalt()(as_const<nodet>(lp).get_value(), m),
1364+
!value_equalt()(as_const<nodet>(static_cast<nodet &>(lp)).get_value(), m),
13651365
"values should not be replaced with equal values to maximize sharing");
13661366

13671367
lp.set_value(std::forward<valueU>(m));
@@ -1372,12 +1372,12 @@ ::update(const key_type &k, std::function<void(mapped_type &)> mutator)
13721372
{
13731373
nodet &lp = get_leaf_node(k);
13741374

1375-
value_comparatort comparator(as_const<nodet>(lp).get_value());
1375+
value_comparatort comparator(as_const<nodet>(static_cast<nodet &>(lp)).get_value());
13761376

13771377
lp.mutate_value(mutator);
13781378

13791379
INVARIANT(
1380-
!comparator(as_const<nodet>(lp).get_value()),
1380+
!comparator(as_const<nodet>(static_cast<nodet &>(lp)).get_value()),
13811381
"sharing_mapt::update should make some change. Consider using read-only "
13821382
"method to check if an update is needed beforehand");
13831383
}

0 commit comments

Comments
 (0)