Forceflow / libmorton

C++ header-only library with methods to efficiently encode/decode Morton codes in/from 2D/3D coordinates
MIT License
596 stars 71 forks source link

declaration of 'const morton morton' shadows template parameter #9

Closed daviddoria closed 8 years ago

daviddoria commented 8 years ago

In morton2D.h at line 98 there is:

template<typename morton, typename coord> inline void morton2D_Decode_for(const morton morton, coord& x, coord& y) {

The first argument cannot be named 'morton' because the template parameter is already named 'morton'.

Forceflow commented 8 years ago

Thanks! Fixed!