'Too many arguments in call to "operator new(unsigned)"' Error When Overloading Operators new()/delete()
(Doc ID 2811435.1)
Last updated on OCTOBER 08, 2021
Applies to:Oracle Solaris Studio - Version 12.4 to 12.6 [Release 12]
Information in this document applies to any platform.
Given the following code
The above issue occurs for Studio CC compiler 12.4 and higher.
If the operator new() declaration is moved before the template struct AllocTest declaration the code compiles successfully.
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!
In this Document