Fix "Class types in non-type template parameters" example.

This commit is contained in:
Anthony Calandra
2024-10-12 22:22:10 -04:00
parent 052c3d80bf
commit 4d2f4d4329
2 changed files with 2 additions and 2 deletions

View File

@@ -321,7 +321,7 @@ struct foo {
constexpr foo(int) {}
};
template <foo f>
template <foo f = {}>
auto get_foo() {
return f;
}