12-27-2018, 06:47 PM
Interesting since C++14 only expands on the use of constexpr and did not eliminate anything from C++11. Mainly C++14 adds the use of deducing multiple return types with all functions and not just lambdas and a single return statement.
If the code was written in accordance with the C++14 standard, then I could see where compiling with C++11 would cause an issue. It would have been nice if they added a guard to check if the code was being compiled for C++11 or C++14 and later with C++17 and beyond so both could exist.
Nice catch though.
If the code was written in accordance with the C++14 standard, then I could see where compiling with C++11 would cause an issue. It would have been nice if they added a guard to check if the code was being compiled for C++11 or C++14 and later with C++17 and beyond so both could exist.
Nice catch though.