mirror of
https://github.com/boostorg/config.git
synced 2026-05-04 20:04:11 +02:00
Added BOOST_MAY_ALIAS and BOOST_NO_MAY_ALIAS macros.
The macros can be used to mark types that can alias other types (i.e. break C++ strict aliasing rules).
This commit is contained in:
@@ -34,6 +34,9 @@ BOOST_NORETURN void always_throw()
|
||||
throw 0;
|
||||
}
|
||||
|
||||
struct BOOST_MAY_ALIAS aliasing_struct {};
|
||||
typedef unsigned int BOOST_MAY_ALIAS aliasing_uint;
|
||||
|
||||
|
||||
#define test_fallthrough(x) foobar(x)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user