- Switch off `nodiscard` for clang unless C++17 is detected. - Detect C++ standard before the switch.