dimanche 20 mai 2018

What is the difference between uniform, direct, and copy initialization?

There are some similar questions but I don't they are clear enough to emphasize exact differences.

So what is the difference between these three?

auto s = "hello world";
auto s1 ("hello world");
auto s2 {"hello world"};

Aucun commentaire:

Enregistrer un commentaire