From 2be8ad1c8227407de8d95b6df5a9f60e98bc79f1 Mon Sep 17 00:00:00 2001 From: Sean Baxter Date: Thu, 1 Aug 2019 19:41:55 -0400 Subject: [PATCH] Update pack_type --- packs/pack.md | 2 +- packs/pack_type.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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