cemyuksel / cyCodeBase

An open source programming resource intended for graphics programmers.
MIT License
271 stars 60 forks source link

Build cyPoint.h error #5

Closed xin-xinhanggao closed 5 years ago

xin-xinhanggao commented 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); }
cemyuksel commented 5 years ago

Thanks! This was a compiler error generated by GCC. It is fixed now.