Closed slarew closed 2 years ago
Hi,
KFR requires C++17 standard since version 4.0.
In C++17 class static fields are implicitly inline, so ADL issues (undefined symbol errors as in your example) don't happen here in C++17.
I can merge this pull request into a separate branch c++14
but there are many other places where C++17 features are actively used, if constexpr
, fold expressions etc, so moving back to C++14 is impractical at least for main development.
Do you have problems with changing -std=gnu++14
to -std=gnu++17
?
I upgraded to C++17.
Using clang 8.0.1 and lld 8.0.1 linker, I had to make the changes in this PR to fix the following error messages:
A snippet of the code that eventually uses those missing constants is: