fix circulator return value in debug mode
This commit is contained in:
@@ -321,7 +321,7 @@ class GenericCirculatorT : protected GenericCirculatorBaseT<typename GenericCirc
|
|||||||
assert(this->heh_.is_valid());
|
assert(this->heh_.is_valid());
|
||||||
value_type res = GenericCirculatorT_TraitsT::toHandle(this->mesh_, this->heh_);
|
value_type res = GenericCirculatorT_TraitsT::toHandle(this->mesh_, this->heh_);
|
||||||
assert(res.is_valid());
|
assert(res.is_valid());
|
||||||
return res;
|
return make_smart(res, this->mesh_);
|
||||||
#else
|
#else
|
||||||
return make_smart(GenericCirculatorT_TraitsT::toHandle(this->mesh_, this->heh_), this->mesh_);
|
return make_smart(GenericCirculatorT_TraitsT::toHandle(this->mesh_, this->heh_), this->mesh_);
|
||||||
#endif
|
#endif
|
||||||
@@ -510,7 +510,7 @@ class GenericCirculatorT_DEPRECATED : protected GenericCirculatorBaseT<typename
|
|||||||
assert(this->heh_.is_valid());
|
assert(this->heh_.is_valid());
|
||||||
value_type res = (self->GenericCirculatorT_DEPRECATED_TraitsT::toHandle(this->mesh_);
|
value_type res = (self->GenericCirculatorT_DEPRECATED_TraitsT::toHandle(this->mesh_);
|
||||||
assert(res.is_valid());
|
assert(res.is_valid());
|
||||||
return res;
|
return make_smart(res, this->mesh_);
|
||||||
#else
|
#else
|
||||||
return make_smart(GenericCirculatorT_DEPRECATED_TraitsT::toHandle(this->mesh_, this->heh_), this->mesh_);
|
return make_smart(GenericCirculatorT_DEPRECATED_TraitsT::toHandle(this->mesh_, this->heh_), this->mesh_);
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user