Addedd missing std namespace befor make_pair
This commit is contained in:
parent
7f113872fb
commit
42709146e6
|
@ -314,7 +314,7 @@ static void Montecarlo(MetroMesh & m, VertexSampler &ps,int sampleNum)
|
||||||
ScalarType val = meshArea * (double)rand() / (double)RAND_MAX;
|
ScalarType val = meshArea * (double)rand() / (double)RAND_MAX;
|
||||||
// lower_bound returns the furthermost iterator i in [first, last) such that, for every iterator j in [first, i), *j < value.
|
// lower_bound returns the furthermost iterator i in [first, last) such that, for every iterator j in [first, i), *j < value.
|
||||||
// E.g. An iterator pointing to the first element "not less than" val, or end() if every element is less than val.
|
// E.g. An iterator pointing to the first element "not less than" val, or end() if every element is less than val.
|
||||||
typename std::vector<IntervalType>::iterator it = lower_bound(intervals.begin(),intervals.end(),make_pair(val,FacePointer(0)) );
|
typename std::vector<IntervalType>::iterator it = lower_bound(intervals.begin(),intervals.end(),std::make_pair(val,FacePointer(0)) );
|
||||||
assert(it != intervals.end());
|
assert(it != intervals.end());
|
||||||
assert(it != intervals.begin());
|
assert(it != intervals.begin());
|
||||||
assert( (*(it-1)).first <val );
|
assert( (*(it-1)).first <val );
|
||||||
|
|
Loading…
Reference in New Issue