C++ Logo

std-proposals

Advanced search

Re: [std-proposals] [Draft Proposal] Required attribute syntax

From: Giuseppe D'Angelo <giuseppe.dangelo_at_[hidden]>
Date: Sat, 6 May 2023 12:07:01 +0200
On 06/05/2023 01:25, Thiago Macieira via Std-Proposals wrote:
> 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

Does this work with modules?

Thanks,
-- 
Giuseppe D'Angelo | giuseppe.dangelo_at_[hidden] | Senior Software Engineer
KDAB (France) S.A.S., a KDAB Group company
Tel. France +33 (0)4 90 84 08 53, http://www.kdab.com
KDAB - The Qt, C++ and OpenGL Experts

Received on 2023-05-06 10:07:05