From 00f1450d9a333f1a671a4c5419322cf48d442738 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sat, 13 Jan 2018 14:57:43 -0800 Subject: [PATCH] Update tesmplate parameter names --- test/format-test.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/format-test.cc b/test/format-test.cc index ef3d89a7..2a9bb7cc 100644 --- a/test/format-test.cc +++ b/test/format-test.cc @@ -296,8 +296,8 @@ TEST(WriterTest, hexu) { EXPECT_EQ("DEADBEEF", write_str(0xdeadbeefull, type='X')); } -template -basic_writer &operator<<(basic_writer &w, const Date &d) { +template +basic_writer &operator<<(basic_writer &w, const Date &d) { w.write(d.year()); w.write('-'); w.write(d.month()); @@ -312,9 +312,9 @@ class ISO8601DateFormatter { public: ISO8601DateFormatter(const Date &d) : date_(&d) {} - template - friend basic_writer &operator<<( - basic_writer &w, const ISO8601DateFormatter &d) { + template + friend basic_writer &operator<<( + basic_writer &w, const ISO8601DateFormatter &d) { w.write(d.date_->year(), width=4, fill='0'); w.write('-'); w.write(d.date_->month(), width=2, fill='0');