mirror of
https://github.com/AnthonyCalandra/modern-cpp-features.git
synced 2025-12-17 10:04:35 +03:00
Fix "Class types in non-type template parameters" example.
This commit is contained in:
2
CPP20.md
2
CPP20.md
@@ -321,7 +321,7 @@ struct foo {
|
|||||||
constexpr foo(int) {}
|
constexpr foo(int) {}
|
||||||
};
|
};
|
||||||
|
|
||||||
template <foo f>
|
template <foo f = {}>
|
||||||
auto get_foo() {
|
auto get_foo() {
|
||||||
return f;
|
return f;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user