Esempio n. 1
0
Owned<void> DynamicNew(const TypeInfo& type)
{
	if (!type.is_default_constructible() || !type.is_destructible())
	{
		return nullptr;
	}

	// Construct object
	return AllocateDynamicNew(type, type.get_default_constructor());
}