Use is_lazy instead of looking at private et.

This commit is contained in:
Marc Glisse 2021-02-16 20:56:22 +01:00
parent 62e6c41096
commit 005da847fa
1 changed files with 6 additions and 6 deletions

View File

@ -331,7 +331,7 @@ public:
LR * lr = dynamic_cast<LR*>(p.ptr());
// Another thread could reset lr->l between the next 2 lines, so we disable reset for Construct_weighted_point_2 in MT-mode.
// We could also always disable reset for Construct_weighted_point_2 and return lr->l here even if update_exact has run.
if(lr && (! lr->et)){
if(lr && lr->is_lazy()){
return std::get<2>(lr->l);
}
return BaseClass().compute_weight_2_object()(p);
@ -362,7 +362,7 @@ public:
LR * lr = dynamic_cast<LR*>(p.ptr());
if(lr && (! lr->et)){
if(lr && lr->is_lazy()){
return std::get<2>(lr->l);
}
return BaseClass().compute_weight_3_object()(p);
@ -411,11 +411,11 @@ public:
LR * lr = dynamic_cast<LR*>(p.ptr());
if(lr){
if(! lr->et)
if(lr->is_lazy())
return std::get<1>(lr->l);
} else {
LRint* lrint = dynamic_cast<LRint*>(p.ptr());
if(lrint && (! lrint->et)){
if(lrint && lrint->is_lazy()){
return std::get<1>(lrint->l);
}
}
@ -467,11 +467,11 @@ public:
LR * lr = dynamic_cast<LR*>(p.ptr());
if(lr){
if(! lr->et)
if(lr->is_lazy())
return std::get<1>(lr->l);
}else{
LRint* lrint = dynamic_cast<LRint*>(p.ptr());
if(lrint && (! lrint->et)){
if(lrint && lrint->is_lazy()){
return std::get<1>(lrint->l);
}
}