Initialization with Curly Brackets

I saw this line of code in a program and although it looks simple I don't understand the reason behind initializing with curly brackets.
1
2
3
4
  //Default Constructor
  Person() = default;
  //Constructor
  Person(const string & name = {});
In this case it signifies a parameter with a default value of an empty string. The braces signify "uniform initialization" (actually assignment in this case).

Topic archived. No new replies allowed.