nholthaus / units

a compile-time, header-only, dimensional analysis and unit conversion library built on c++14 with no dependencies.
http://nholthaus.github.io/units/
MIT License
938 stars 134 forks source link

Fix "ENABLE_PREDEFINED_CONSTANTS_UNITS" not used (#264) #270

Closed Delgan closed 1 year ago

Delgan commented 3 years ago

Hi!

Recently I compiled units with DISABLE_PREDEFINED_UNITS=ON but could not access contants::PI despite ENABLE_PREDEFINED_CONSTANTS_UNITS=ON.

It seems this problem has been reported in #264. Could the fix be that simple?