OleksandrKvl / sbepp

C++ implementation of the FIX Simple Binary Encoding
https://oleksandrkvl.github.io/sbepp/
MIT License
39 stars 4 forks source link

`[[nodiscard]]` produces an error on Clang in C++11 mode #16

Closed OleksandrKvl closed 7 months ago

OleksandrKvl commented 7 months ago

Clang incorrectly provides [[nodiscard]] in C++11 mode and then produces a warning (converted to error) that it's a C++17 feature. See workaround here: https://github.com/boostorg/json/blob/8670fd78af55d91b799a94457b28231f8b089b70/include/boost/json/detail/config.hpp#L33