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
  • 37,241
  • 25
  • 195
  • 267
Jakub Zaverka
  • 8,816
  • 3
  • 32
  • 48
  • 6
    Direct initialization vs. copy initialization. You can look it up based on those terms. – chris Dec 16 '12 at 00:28

0 Answers0