'Too many arguments in call to "operator new(unsigned)"' Error When Overloading Operators new()/delete()
(Doc ID 2811435.1)
Last updated on DECEMBER 06, 2022
Applies to:
Oracle Solaris Studio - Version 12.4 to 12.6 [Release 12]Information in this document applies to any platform.
Symptoms
Given the following code
The above issue occurs for Studio CC compiler 12.4 and higher.
WORKAROUND
-------------------
If the operator new() declaration is moved before the template struct AllocTest declaration the code compiles successfully.
Changes
Cause
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
Symptoms |
Changes |
Cause |
Solution |
References |