The global new and delete can be used like normal, but you can also prefix the :: operator to them and it will work the same. Are there any other keywords that have this same behaviour? Thanks.
views:
12answers:
1
A:
Yes, you can also scope operator
keyword, like ::operator+(a, b)
.
I believe new
, delete
and operator
are the only ones in standard C++ that allow this.
Constantin
2010-07-28 13:43:31