diff --git a/include/boost/move/detail/nsec_clock.hpp b/include/boost/move/detail/nsec_clock.hpp index e43cca4..21b19cd 100644 --- a/include/boost/move/detail/nsec_clock.hpp +++ b/include/boost/move/detail/nsec_clock.hpp @@ -140,6 +140,9 @@ struct cpu_times nanosecond_type system; void clear() { wall = user = system = 0; } + + cpu_times() + { this->clear(); } }; diff --git a/test/order_type.hpp b/test/order_type.hpp index de398ab..e505b60 100644 --- a/test/order_type.hpp +++ b/test/order_type.hpp @@ -25,6 +25,7 @@ struct order_perf_type std::size_t val; order_perf_type() + : key(), val() { ++num_elements; }