mirror of
https://github.com/changkun/modern-cpp-tutorial.git
synced 2025-12-17 04:34:40 +03:00
book: use curly brackets to initailize aggregate objects (#112)
This commit is contained in:
@@ -37,7 +37,7 @@ int main() {
|
||||
auto i = 5; // type int
|
||||
auto j = 6; // type int
|
||||
auto arr = new auto(10); // type int*
|
||||
// auto auto_arr2[10] = arr;
|
||||
// auto auto_arr2[10] = {arr};
|
||||
// std::cout << add(i, j) << std::endl;
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user