Coming from the world of Java and C #, I always like to use
someclass a = someclass();
instead
someclass a();
to initialize a class variable in C ++. However, my compiler sometimes complains
Error C2280: Attempting to reference a deleted function
Is there any difference between the two? Which one is better?
source
share