From 3d69e38a1c67ea0eb6b02925cf37fe3db9707e9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20Ka=CC=88fer?= Date: Fri, 25 Apr 2014 16:14:15 +0200 Subject: [PATCH] require explicit initialization to point devs toward empty timer names --- include/llmr/util/timer.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/llmr/util/timer.hpp b/include/llmr/util/timer.hpp index e4165044d..95a58e500 100644 --- a/include/llmr/util/timer.hpp +++ b/include/llmr/util/timer.hpp @@ -11,7 +11,7 @@ namespace util { class timer { using hr = std::chrono::high_resolution_clock; public: - timer(const std::string &name) : name(name), start(hr::now()) {} + explicit timer(const std::string &name) : name(name), start(hr::now()) {} ~timer() { using namespace std::chrono; std::cerr << name << ": "