mirror of https://github.com/CGAL/cgal
only use msvc::no_unique_address with C++20 or later
This commit is contained in:
parent
1dce90ee79
commit
60b5642b7c
|
|
@ -346,7 +346,7 @@ using std::max;
|
|||
#define CGAL_NORETURN [[noreturn]]
|
||||
|
||||
// Macro to specify [[no_unique_address]] if supported
|
||||
#if _MSC_VER >= 1929
|
||||
#if _MSC_VER >= 1929 && _MSVC_LANG >= 202002L
|
||||
// see https://devblogs.microsoft.com/cppblog/msvc-cpp20-and-the-std-cpp20-switch/#c20-no_unique_address
|
||||
# define CGAL_NO_UNIQUE_ADDRESS [[msvc::no_unique_address]]
|
||||
#elif __has_cpp_attribute(no_unique_address)
|
||||
|
|
|
|||
Loading…
Reference in New Issue