There is derived class BoundingBox3Base
:
template <class PointClass>
class BoundingBox3Base : public BoundingBoxBase<PointClass>
{
public:
BoundingBox3Base(const std::vector<PointClass>& points)
{
// ...
// ** Error happens at this line:
// ** error C2059: syntax error: '('
this->defined = (this->min(0) < this->max(0)) && (this->min(1) < this->max(1)) && (this->min(2) < this->max(2));
}
};
Derived from a base class BoundingBoxBase
:
template <class PointClass>
class BoundingBoxBase
{
public:
PointClass min;
PointClass max;
bool defined;
BoundingBoxBase(const std::vector<PointClass>& points) : min(PointClass::Zero()), max(PointClass::Zero())
{
if (points.empty()) {
this->defined = false;
} else {
// ...
this->defined = (this->min(0) < this->max(0)) && (this->min(1) < this->max(1));
}
}
};
I'm receiving this compile error at the marked** line:
error C2059: syntax error: '('
I cannot figure out what I'm missing! Can anybody help?
RESOLVED
The issue got resolved by suppressing the min and max definitions in Windef.h
by defining NOMINMAX
as suggested here.