Date: Fri, 05 May 2023 16:25:23 -0700
On Friday, 5 May 2023 08:33:51 PDT Marcin Jaczewski via Std-Proposals wrote:
> And if some else grab by headers and try link
> to my dll I would prefer hard error if compiler do not support NUA or
> interpret it
> diffrent than my compiler.
What's the problem with:
#if !__has_cpp_attribute(no_unique_address)
# error "Data layout would mismatch without [[no_unique_address]]; " \
"please upgrade your compiler"
#endif
> And if some else grab by headers and try link
> to my dll I would prefer hard error if compiler do not support NUA or
> interpret it
> diffrent than my compiler.
What's the problem with:
#if !__has_cpp_attribute(no_unique_address)
# error "Data layout would mismatch without [[no_unique_address]]; " \
"please upgrade your compiler"
#endif
-- Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org Software Architect - Intel DCAI Cloud Engineering
Received on 2023-05-05 23:25:26