Bug fix (reference to temporary object)

Conflict_predicate now stores copies of the predicates instead of references.
This commit is contained in:
Clement Jamin 2014-04-01 13:56:38 +02:00
parent 3db5931721
commit 2f874ff8a3
1 changed files with 3 additions and 2 deletions

View File

@ -268,8 +268,8 @@ public:
{
const Self & dc_;
const Point & p_;
const OrientationPredicate & ori_;
const SideOfOrientedSpherePredicate & side_of_s_;
const OrientationPredicate ori_;
const SideOfOrientedSpherePredicate side_of_s_;
int cur_dim_;
public:
Conflict_predicate(
@ -278,6 +278,7 @@ public:
const OrientationPredicate & ori,
const SideOfOrientedSpherePredicate & side)
: dc_(dc), p_(p), ori_(ori), side_of_s_(side), cur_dim_(dc.current_dimension()) {}
inline
bool operator()(Full_cell_const_handle s) const
{