top | item 27218983

(no title)

MakersF | 4 years ago

In practical terms, none. They are the same, and the same as using the curly braces.

From the POV of the standard, those are different kinds of initializations. C++ has like 12 different ways of initializing variables, and the differences are quite confusing, but in practical terms in my experience I never had to care too much beside making sure native types are initialized to some specified value.

You can probably find some talks on YouTube talking about the initializations of c++, and 1h30m is probably not enought to cover all the details :')

discuss

order

kleiba|4 years ago

Yeah, that sounds like C++, I suppose. Thanks very much.