[bugfix] fix typo decay_t --> decay
Otherwise this file does not compile with gcc 4.9.1.
Merge request reports
Activity
Some time ago there was a problem that the compiler used the libstdcxx from an older compiler. That's the reason why we test for compiler support of C++14 and the same for the library. If one fails, we fall back to C++11.
I think the proper fix is to error out when the required C++14 is not working. Then people have to fix their compiler. At least this would accord to our decision to allow usage of all C++14 features GCC 4.9 supports.
I'll prepare a merge request to require C++14.
On desktop systems these issues never occur. It's when you move your code to a parallel computer, over engineered things like typetraits.hh start to go wrong. Then fixing the compile is most of the time not an option and you have to live with what's there. Adding -std=c++14 seems to work. So the test is "wrong" in that case.
Can you provide the related output from CMake?
Adding -std=c++14 might currently work for the compiler features, but people will start using c++14 library features, too.
Fixing the compiler would mean to tell the compiler to use the right library. I never did it myself, but I still hear Steffen grumbling