From 5805a541bb018a6bf1ace4983c20ddd97feb736d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Wo=CC=81jcik?= <3044353+pwojcikdev@users.noreply.github.com> Date: Sat, 21 Jan 2023 19:26:17 +0100 Subject: [PATCH] Use ostream operators --- nano/test_common/rate_observer.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nano/test_common/rate_observer.cpp b/nano/test_common/rate_observer.cpp index b2fb891743..4abf42b728 100644 --- a/nano/test_common/rate_observer.cpp +++ b/nano/test_common/rate_observer.cpp @@ -4,6 +4,8 @@ #include +using namespace magic_enum::ostream_operators; + /* * rate_observer::counter */ @@ -47,7 +49,7 @@ uint64_t nano::test::rate_observer::stat_counter::count () std::string nano::test::rate_observer::stat_counter::name () { std::stringstream ss; - ss << nano::to_string (type) << "::" << nano::to_string (detail) << "::" << nano::to_string (dir); + ss << type << "::" << detail << "::" << dir; return ss.str (); }