diff --git a/packs/pack.md b/packs/pack.md index d32b204..9984b8c 100644 --- a/packs/pack.md +++ b/packs/pack.md @@ -412,7 +412,7 @@ int main() { @meta types.erase(std::unique(types.begin(), types.end()), types.end()); // Instantiate foo_t on the unique types. - foo_t<@pack_type(types.data(), types.size())...> foo; + foo_t<@pack_type(types)...> foo; return 0; } diff --git a/packs/pack_type.cxx b/packs/pack_type.cxx index 99a15c9..aca45d2 100644 --- a/packs/pack_type.cxx +++ b/packs/pack_type.cxx @@ -30,7 +30,7 @@ int main() { @meta types.erase(std::unique(types.begin(), types.end()), types.end()); // Instantiate foo_t on the unique types. - foo_t<@pack_type(types.data(), types.size())...> foo; + foo_t<@pack_type(types)...> foo; return 0; } \ No newline at end of file