This workaround is supposed to silence GCC warnings about broken strict aliasing rules
| 719 | #if defined(BOOST_OPTIONAL_DETAIL_USE_ATTRIBUTE_MAY_ALIAS) |
| 720 | // This workaround is supposed to silence GCC warnings about broken strict aliasing rules |
| 721 | internal_type const* get_object() const |
| 722 | { |
| 723 | union { void const* ap_pvoid; internal_type const* as_ptype; } caster = { m_storage.address() }; |
| 724 | return caster.as_ptype; |
| 725 | } |
| 726 | internal_type * get_object() |
| 727 | { |
| 728 | union { void* ap_pvoid; internal_type* as_ptype; } caster = { m_storage.address() }; |
no test coverage detected