johnmcfarlane / cnl

A Compositional Numeric Library for C++
Boost Software License 1.0
632 stars 63 forks source link

Fixed redefinition error when compiling with g++12 #1043

Closed sprenger120 closed 1 year ago

sprenger120 commented 1 year ago

Two tests won't compile when done so with g++12 because of an old workaround added for MSVC. I've extended it to include g++ and just plucked out the __cpluscplus version string from my locally installed filesystem include file.

johnmcfarlane commented 1 year ago

Thanks @sprenger120! Note, I've bypassed the CI as it's likely not passing currently due to bit rot.