see #2: move non-type template param auto to ch02

This commit is contained in:
Changkun Ou
2019-07-11 11:07:10 +02:00
parent b073e290fb
commit dd8cf90bbe
10 changed files with 149 additions and 180 deletions

View File

@@ -19,5 +19,5 @@ template<bool T> class MagicType {
int main() {
// the >> in template
std::vector<std::vector<int>> matrix;
std::vector<MagicType<(1>2)>> magic;
std::vector<MagicType<(1>2)>> magic; // legal, but not recommended
}