MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / get_object

Function get_object

include/win/boost/optional/optional.hpp:721–725  ·  view source on GitHub ↗

This workaround is supposed to silence GCC warnings about broken strict aliasing rules

Source from the content-addressed store, hash-verified

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() };

Callers 5

get_implFunction · 0.85
get_ptr_implFunction · 0.85
constraintsMethod · 0.85

Calls 1

addressMethod · 0.45

Tested by

no test coverage detected