You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a class override the operator new(this is normal when using some kind of memory pool),when export the Constructor, it'll triggeran error:
'operator new' : function does not take 2 arguments
To be sure to use the global allocation function,the placement new should explicit use ::new.
If a class override the operator new(this is normal when using some kind of memory pool),when export the Constructor, it'll triggeran error:
'operator new' : function does not take 2 arguments
To be sure to use the global allocation function,the placement new should explicit use ::new.
patch:
CppInvoke.h
static T* call(void* mem, TUPLE& args)
{
-return new (mem) T(std::get(args).value()...);
+return ::new (mem) T(std::get(args).value()...);
}
The text was updated successfully, but these errors were encountered: