3

Possible Duplicate:
Is there a difference in C++ between copy initialization and direct initialization?
What's the difference between explicit and implicit assignment in C++

Simple as that. What is the difference between

std::string a("abc");

and

std::string a = "abc";
Cœur
  • 34,719
  • 24
  • 185
  • 251
Jakub Zaverka
  • 8,664
  • 3
  • 29
  • 47
  • 6
    Direct initialization vs. copy initialization. You can look it up based on those terms. – chris Dec 16 '12 at 00:28

0 Answers0