For inline functions WI_NODISCARD needs to be placed before inline not after. While cl permits non-conformant placement clang++ does not resulting in error G35162013: 'nodiscard' attribute cannot be applied to types [clang-diagnostic-error]
Move WI_NODISCARD before inline to correct the problem.
For inline functions WI_NODISCARD needs to be placed before inline not after. While cl permits non-conformant placement clang++ does not resulting in error G35162013: 'nodiscard' attribute cannot be applied to types [clang-diagnostic-error]
Move WI_NODISCARD before inline to correct the problem.