MCPcopy Create free account
hub / github.com/boostorg/filesystem / globals_retainer

Class globals_retainer

src/path.cpp:1622–1627  ·  view source on GitHub ↗

Makes sure the global initializer pointers are referenced and not removed by linker

Source from the content-addressed store, hash-verified

1620#if defined(BOOST_FILESYSTEM_NO_ATTRIBUTE_RETAIN)
1621//! Makes sure the global initializer pointers are referenced and not removed by linker
1622struct globals_retainer
1623{
1624 const init_func_ptr_t* volatile m_p_init_path_globals;
1625
1626 globals_retainer() { m_p_init_path_globals = &p_init_path_globals; }
1627};
1628BOOST_ATTRIBUTE_UNUSED
1629static const globals_retainer g_globals_retainer;
1630#endif // defined(BOOST_FILESYSTEM_NO_ATTRIBUTE_RETAIN)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected