From 03e39b0400660deae5ef99282ee226401277eace Mon Sep 17 00:00:00 2001 From: Oliver Kowalke Date: Mon, 30 Nov 2015 20:22:58 +0100 Subject: [PATCH] c++14 - autoreset_event --- include/boost/fiber/detail/autoreset_event.hpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) 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;