use emplace_back instead of push_back where justified
This commit is contained in:
@@ -156,10 +156,10 @@ std::vector<PointKernel::value_type> PointKernel::getValidPoints() const
|
||||
if (!(boost::math::isnan(it->x) ||
|
||||
boost::math::isnan(it->y) ||
|
||||
boost::math::isnan(it->z)))
|
||||
valid.push_back(value_type(
|
||||
valid.emplace_back(
|
||||
static_cast<float_type>(it->x),
|
||||
static_cast<float_type>(it->y),
|
||||
static_cast<float_type>(it->z)));
|
||||
static_cast<float_type>(it->z));
|
||||
}
|
||||
return valid;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user