]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/fiber/src/future.cpp
update sources to v12.2.3
[ceph.git] / ceph / src / boost / libs / fiber / src / future.cpp
index 0059b457793698c96b3e22632d297d923468a941..d8f9b5c4dbf6b6756588627b6c55d26dc771ac06 100644 (file)
@@ -18,26 +18,24 @@ public:
     virtual std::error_condition default_error_condition( int ev) const noexcept {
         switch ( static_cast< future_errc >( ev) ) {
             case future_errc::broken_promise:
-                return std::error_condition(
+                return std::error_condition{
                         static_cast< int >( future_errc::broken_promise),
-                        future_category() );
+                        future_category() };
             case future_errc::future_already_retrieved:
-                return std::error_condition(
+                return std::error_condition{
                         static_cast< int >( future_errc::future_already_retrieved),
-                        future_category() );
+                        future_category() };
             case future_errc::promise_already_satisfied:
-                return std::error_condition(
+                return std::error_condition{
                         static_cast< int >( future_errc::promise_already_satisfied),
-                        future_category() );
+                        future_category() };
             case future_errc::no_state:
-                return std::error_condition(
+                return std::error_condition{
                         static_cast<
                         int >( future_errc::no_state),
-                        future_category() );
+                        future_category() };
             default:
-                return std::error_condition(
-                        ev,
-                        * this);
+                return std::error_condition{ ev, * this };
         }
     }
 
@@ -49,18 +47,18 @@ public:
     virtual std::string message( int ev) const {
         switch ( static_cast< future_errc >( ev) ) {
             case future_errc::broken_promise:
-                return std::string("The associated promise has been destructed prior "
-                        "to the associated state becoming ready.");
+                return std::string"The associated promise has been destructed prior "
+                        "to the associated state becoming ready." };
             case future_errc::future_already_retrieved:
-                return std::string("The future has already been retrieved from "
-                        "the promise or packaged_task.");
+                return std::string"The future has already been retrieved from "
+                        "the promise or packaged_task." };
             case future_errc::promise_already_satisfied:
-                return std::string("The state of the promise has already been set.");
+                return std::string{ "The state of the promise has already been set." };
             case future_errc::no_state:
-                return std::string("Operation not permitted on an object without "
-                        "an associated state.");
+                return std::string"Operation not permitted on an object without "
+                        "an associated state." };
         }
-        return std::string("unspecified future_errc value\n");
+        return std::string{ "unspecified future_errc value\n" };
     }
 };