c++ declaring objects with curly braces
问题 When declaring objects in c++ - What is the difference between MyClass myObj (a,b,c); (I understand this as invoking the constructor that takes three arguments) vs. MyClass myObbj{a,b,c}; Not sure what the curly brackets here mean? As a reference I am using the following code // Inertial Navigation EKF NavEKF EKF{&ahrs, barometer, sonar}; AP_AHRS_NavEKF ahrs{ins, barometer, gps, sonar, EKF}; 1. Is the use of curly brace as in NavEKF EKF{&ahrs, barometer, sonar}; part of c++ standard. gcc 4.6