Forgot this one. (nw)

This commit is contained in:
couriersud 2019-01-10 23:17:33 +01:00
parent f73eca0c7f
commit 8611a7da2e

View File

@ -1369,10 +1369,11 @@ namespace netlist
{
const char *p[N];
};
object_array_t(core_device_t &dev, init names)
template<typename... Args>
object_array_t(core_device_t &dev, init names, Args&&... args)
{
for (std::size_t i = 0; i<N; i++)
this->emplace(i, dev, pstring(names.p[i]));
this->emplace(i, dev, pstring(names.p[i]), std::forward<Args>(args)...);
}
};