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

Include <algorithm> to get min and max #31

Closed lilleyse closed 6 years ago

lilleyse commented 6 years ago

I'm having trouble building libmorton with gcc 6.3.0 on Ubuntu 16.04.

error: there are no arguments to 'max' that depend on a template parameter, so a declaration of 'max' must be available [-fpermissive] checkbits = min(static_cast<unsigned long>(checkbits), max(x_max, y_max) + 1ul);

Including <alogorithm> fixes this for me.

Forceflow commented 6 years ago

Weird, GCC builds passed fine on Travis, but it's 17.10 there. Anyway, merged!

lilleyse commented 6 years ago

Thanks for the quick review!