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