From 107ab269a7c5b7bbe84803a303dcf9efec3068f0 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Mon, 2 Sep 2013 10:23:53 -0700 Subject: [PATCH] Use Writer instead of Formatter in the int_generator test. --- tests/int_generator.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/int_generator.cpp b/tests/int_generator.cpp index 8c5474f0..78689c68 100644 --- a/tests/int_generator.cpp +++ b/tests/int_generator.cpp @@ -132,12 +132,13 @@ int main() util::high_resolution_timer t; //[karma_int_performance_format + fmt::Writer writer; for (int i = 0; i < MAX_ITERATION; ++i) { - fmt::Formatter format; - format << v[i]; + writer.Clear(); + writer << v[i]; //<- - str = format.c_str(); // compensate for string ops in other benchmarks + str = writer.c_str(); // compensate for string ops in other benchmarks //-> } //]