15 Apr
2014
15 Apr
'14
11:14 p.m.
On 16 April 2014 00:41, Georgios Samaras
I can not create a point in d(in the code M is dimensions) dimensions. The error is this: error: the value of ‘M’ is not usable in a constant expression note: ‘int M’ is not const error: template argument 2 is invalid
and the line is this: int M; .. typedef bg::model::point
point;
The compiler is right, as in this context of template instantiation, M must denote a constant expression and M must not be evaluated at run-time. This error has nothing to do with a problem in Boost.Geometry, but it indicates problem in your program, misuse of the class template(s). Best regards, -- Mateusz Łoskot, http://mateusz.loskot.net