This workaround is supposed to silence GCC warnings about broken strict aliasing rules
| 453 | #if defined(BOOST_OPTIONAL_DETAIL_USE_ATTRIBUTE_MAY_ALIAS) |
| 454 | // This workaround is supposed to silence GCC warnings about broken strict aliasing rules |
| 455 | internal_type const* get_object() const |
| 456 | { |
| 457 | union { void const* ap_pvoid; internal_type const* as_ptype; } caster = { m_storage.address() }; |
| 458 | return caster.as_ptype; |
| 459 | } |
| 460 | internal_type * get_object() |
| 461 | { |
| 462 | union { void* ap_pvoid; internal_type* as_ptype; } caster = { m_storage.address() }; |
no test coverage detected