Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion chap03/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ For those that are not legal, explain why they are illegal.
(c) vector<string> svec(10, "null");
```

(a) legal: define and value initialize a _vector_ whose elements are _vector_ of _int_.
(a) uncertain: In the modern C++ standard(like C++ 11),it define and default initialize a _vector_ whose elements are _vector_ of _int_. However, In the past C++ standard(like C++ 98), it will raise compiling error for lacking a _space_ between the two closing angle bracket of the outer _vector_.

(b) illegal: types of _svec_ and _ivec_ are different, we can't initialize a _vector_ with another of
different types.
Expand Down