|
|
@ -25,8 +25,7 @@ namespace rng::init
|
|
|
|
std::function<Random* (const void*)>& get(std::string_view name);
|
|
|
|
std::function<Random* (const void*)>& get(std::string_view name);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#define RNGXX_DCTOR_NAME(T) _rng__init_for_ ## T
|
|
|
|
|
|
|
|
// To add to dynamic CTOR map
|
|
|
|
// To add to dynamic CTOR map
|
|
|
|
#define RNGXX_APPLY_CTOR(ns, T, TSeed) \
|
|
|
|
#define RNGXX_APPLY_CTOR(ns, T, TSeed) \
|
|
|
|
const static auto RNGXX_DCTOR_NAME(T) = rng::init::apply<ns::T, TSeed>(#T, [](const TSeed* ptr) { return new ns::T(*ptr); })
|
|
|
|
const auto RNGXX_DCTOR_NAME(T) = rng::init::apply<ns::T, TSeed>(#T, [](const TSeed* ptr) { return new ns::T(*ptr); })
|
|
|
|
|
|
|
|
|
|
|
|