mirror of
https://github.com/changkun/modern-cpp-tutorial.git
synced 2025-12-17 04:34:40 +03:00
see #2: move non-type template param auto to ch02
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user