BOOST_OPENMETHOD_INSTANTIATE_REGISTRY
Instantiate a registry's state, in exactly one translation unit of the owning module.
Synopsis
Declared in <boost/openmethod/macros.hpp>
#define BOOST_OPENMETHOD_INSTANTIATE_REGISTRY(REGISTRY)
Description
See BOOST_OPENMETHOD_IMPORT_REGISTRY for how the three registry‐sharing macros fit together.
Use at namespace scope, after the registry's definition, in exactly one translation unit of the module that owns the registry. It belongs in a .cpp file, never in a header.
It emits the explicit instantiation definition of the registry state, of which a program may contain only one. On declspec platforms the definition carries the dllexport; on ELF and Mach‐O it carries no attribute, that having been supplied by BOOST_OPENMETHOD_EXPORT_REGISTRY in the header.
Parameters
Name |
Description |
REGISTRY |
The registry to instantiate. May be any registry, predefined or user‐defined. |
See Also
Shared Libraries for the full discussion, including the required link setup.
Created with MrDocs