Follow Slashdot blog updates by subscribing to our blog RSS feed

 



Forgot your password?
typodupeerror
×

Comment Re:Given how C++ is taught. (Score 1) 345

G2P says:

You should almost never see a new

You claim:

That is complete nonsense.
At some point you have to allocate the objects/memory. And for that you need a "new".

To demonstrate that you're wrong, I mention make_shared as an example of allocating objects without your having to see new.

Was that really so hard to figure out?

Slashdot Top Deals

The solution of this problem is trivial and is left as an exercise for the reader.

Working...