Closed xin-xinhanggao closed 5 years ago
Hello, I want to build my project with cyPoint.h using c++ 11
But it seems something get error
error: expected primary-expression before ‘,’ token template <typename T, int M> explicit Point2( const Point<T,M> &p ) { p.ConvertData<TYPE,2>(&x); } /home/xhg/Glitter/Glitter/Headers/cyPoint.h: In constructor ‘cy::Point3<TYPE>::Point3(const cy::Point<T, M>&)’: /home/xhg/Glitter/Glitter/Headers/cyPoint.h:280:90: error: expected primary-expression before ‘,’ token template <typename T, int M> explicit Point3( const Point<T,M> &p ) { p.ConvertData<TYPE,3>(&x); } ^ /home/xhg/Glitter/Glitter/Headers/cyPoint.h: In constructor ‘cy::Point4<TYPE>::Point4(const cy::Point<T, M>&)’: /home/xhg/Glitter/Glitter/Headers/cyPoint.h:381:90: error: expected primary-expression before ‘,’ token template <typename T, int M> explicit Point4( const Point<T,M> &p ) { p.ConvertData<TYPE,4>(&x); }
Thanks! This was a compiler error generated by GCC. It is fixed now.
Hello, I want to build my project with cyPoint.h using c++ 11
But it seems something get error