From e7e270f51142253b51c0eeb30b3aad8a0dc61bf6 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sun, 19 Nov 2017 08:25:34 -0800 Subject: [PATCH] Test error on invalid type spec and remove unused alias --- include/fmt/format.h | 2 -- test/format-test.cc | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/include/fmt/format.h b/include/fmt/format.h index 984c0122..bb5b7c43 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -3773,8 +3773,6 @@ struct formatter< } private: - using arg_ref = internal::arg_ref; - internal::dynamic_format_specs specs_; }; diff --git a/test/format-test.cc b/test/format-test.cc index dce3240d..b290b00e 100644 --- a/test/format-test.cc +++ b/test/format-test.cc @@ -1909,4 +1909,5 @@ TEST(FormatTest, FormatStringErrors) { EXPECT_ERROR("{}{1}", "cannot switch from automatic to manual argument indexing", int, int); + EXPECT_ERROR("{:s}", "invalid type specifier", int); }