diff --git a/include/boost/fiber/detail/autoreset_event.hpp b/include/boost/fiber/detail/autoreset_event.hpp index b15d9c12..d0fffa68 100644 --- a/include/boost/fiber/detail/autoreset_event.hpp +++ b/include/boost/fiber/detail/autoreset_event.hpp @@ -25,14 +25,12 @@ namespace detail { class autoreset_event { private: - std::mutex mtx_; - std::condition_variable cnd_; - bool flag_; + std::mutex mtx_{}; + std::condition_variable cnd_{}; + bool flag_{ false }; public: - autoreset_event() : - mtx_(), cnd_(), flag_( false) { - } + constexpr autoreset_event() = default; autoreset_event( autoreset_event const&) = delete; autoreset_event & operator=( autoreset_event const&) = delete;