susumu.yata
null+****@clear*****
Tue Jul 16 11:21:01 JST 2013
susumu.yata 2013-07-16 11:21:01 +0900 (Tue, 16 Jul 2013) New Revision: 5e4a55ed5411646b751cdee860c590ec0a46bdb6 https://github.com/groonga/grnxx/commit/5e4a55ed5411646b751cdee860c590ec0a46bdb6 Message: Enable a constructor without arguments. Modified files: lib/grnxx/stopwatch.hpp Modified: lib/grnxx/stopwatch.hpp (+2 -6) =================================================================== --- lib/grnxx/stopwatch.hpp 2013-07-11 18:12:21 +0900 (13edbac) +++ lib/grnxx/stopwatch.hpp 2013-07-16 11:21:01 +0900 (5933bee) @@ -27,12 +27,8 @@ namespace grnxx { // To measure the amount of time elapsed. class Stopwatch { public: - // Disable the default constructor so that users don't forget to start a - // stopwatch. - Stopwatch() = delete; - - // Construct a stopwatch, which is started if is_running == true. - explicit Stopwatch(bool is_running); + // Initialize a stopwatch, which is started if "is_running" == true. + explicit Stopwatch(bool is_running = false); // Return true iff the stopwatch is running. bool is_running() const { -------------- next part -------------- HTML����������������������������...Download