auto a = (Foo<T>*)malloc(sizeof(Foo<T>));
auto *b = (Foo<T>*)malloc(sizeof(Foo<T>));
I do not think it's important that the patterns are, but the question is, aand bof the same type?
g++ -std=c++0x -Wall (4.4) does not give any errors or warnings, but I did not run the program, so I do not know if it does the same.
Does this mean that for a, autois Foo<T>*, but for b, autois Foo<T>?
source
share