28 #ifndef CEREAL_DETAILS_STATIC_OBJECT_HPP_
29 #define CEREAL_DETAILS_STATIC_OBJECT_HPP_
42 # define CEREAL_DLL_EXPORT __declspec(dllexport)
45 # define CEREAL_DLL_EXPORT
46 # define CEREAL_USED __attribute__ ((__used__))
65 static void instantiate( T
const & ) {}
70 instantiate(instance);
77 static T & getInstance()
90 #endif // CEREAL_DETAILS_STATIC_OBJECT_HPP_
Definition: access.hpp:39
#define CEREAL_DLL_EXPORT
Prevent link optimization from removing non-referenced static objects.
Definition: static_object.hpp:45
A static, pre-execution object.
Definition: static_object.hpp:61