Recently version 16.9.5 of Visual Studio 2019 has been released. It apparently introduced new warning:
[[nodiscard]] __declspec(dllexport) bool foo(); //ok
__declspec(dllexport) [[nodiscard]] bool bar(); // warning C5240: 'nodiscard': attribute is ignored in this syntactic position
Actually I thought that both nodiscard and dllexport are attributes that can appear in any order, or it is not?