Skip to content

Add macro that expands to no_unique_address attribute

Simon Praetorius requested to merge feature/no_unique_address into master

The attribute [[no_unique_address]] is a c++20 feature and not uniformly implemented in compilers. See the discussion in !1426. This MR provides a macro DUNE_NO_UNIQUE_ADDRESS that expands to the attribute, similar forms, or to nothing in case it is not implemented. It is put into the directory dune/common/std since it is actually a standard c++ feature.

Merge request reports

Loading