mirror of
https://github.com/boostorg/fiber.git
synced 2026-02-19 02:12:24 +00:00
qualify ctors with noexcept
This commit is contained in:
@@ -141,7 +141,7 @@ private:
|
||||
void * vp{ nullptr };
|
||||
detail::fss_cleanup_function::ptr_t cleanup_function{};
|
||||
|
||||
constexpr fss_data() = default;
|
||||
constexpr fss_data() noexcept = default;
|
||||
|
||||
fss_data( void * vp_,
|
||||
detail::fss_cleanup_function::ptr_t const& fn) noexcept :
|
||||
@@ -159,7 +159,7 @@ private:
|
||||
detail::spinlock_lock * lk{ nullptr };
|
||||
context * ctx{ nullptr };
|
||||
|
||||
constexpr data_t() = default;
|
||||
constexpr data_t() noexcept = default;
|
||||
|
||||
explicit data_t( detail::spinlock_lock * lk_) noexcept :
|
||||
lk{ lk_ } {
|
||||
@@ -213,7 +213,7 @@ public:
|
||||
context * impl_{ nullptr };
|
||||
|
||||
public:
|
||||
constexpr id() = default;
|
||||
constexpr id() noexcept = default;
|
||||
|
||||
explicit id( context * impl) noexcept :
|
||||
impl_( impl) {
|
||||
|
||||
@@ -42,7 +42,7 @@ private:
|
||||
public:
|
||||
typedef context::id id;
|
||||
|
||||
constexpr fiber() = default;
|
||||
constexpr fiber() noexcept = default;
|
||||
|
||||
template< typename Fn, typename ... Args >
|
||||
fiber( Fn && fn, Args && ... args) :
|
||||
|
||||
@@ -28,7 +28,7 @@ struct future_base {
|
||||
|
||||
ptr_t state_{};
|
||||
|
||||
constexpr future_base() = default;
|
||||
constexpr future_base() noexcept = default;
|
||||
|
||||
explicit future_base( ptr_t const& p) noexcept :
|
||||
state_{ p } {
|
||||
@@ -106,7 +106,7 @@ private:
|
||||
friend class shared_future< R >;
|
||||
|
||||
public:
|
||||
constexpr future() = default;
|
||||
constexpr future() noexcept = default;
|
||||
|
||||
explicit future( typename base_t::ptr_t const& p) noexcept :
|
||||
base_t{ p } {
|
||||
@@ -151,7 +151,7 @@ private:
|
||||
friend class shared_future< R & >;
|
||||
|
||||
public:
|
||||
constexpr future() = default;
|
||||
constexpr future() noexcept = default;
|
||||
|
||||
explicit future( typename base_t::ptr_t const& p) noexcept :
|
||||
base_t{ p } {
|
||||
@@ -196,7 +196,7 @@ private:
|
||||
friend class shared_future< void >;
|
||||
|
||||
public:
|
||||
constexpr future() = default;
|
||||
constexpr future() noexcept = default;
|
||||
|
||||
explicit future( base_t::ptr_t const& p) noexcept :
|
||||
base_t{ p } {
|
||||
@@ -247,7 +247,7 @@ private:
|
||||
}
|
||||
|
||||
public:
|
||||
constexpr shared_future() = default;
|
||||
constexpr shared_future() noexcept = default;
|
||||
|
||||
~shared_future() = default;
|
||||
|
||||
@@ -304,7 +304,7 @@ private:
|
||||
}
|
||||
|
||||
public:
|
||||
constexpr shared_future() = default;
|
||||
constexpr shared_future() noexcept = default;
|
||||
|
||||
~shared_future() = default;
|
||||
|
||||
@@ -361,7 +361,7 @@ private:
|
||||
}
|
||||
|
||||
public:
|
||||
constexpr shared_future() = default;
|
||||
constexpr shared_future() noexcept = default;
|
||||
|
||||
~shared_future() = default;
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ private:
|
||||
ptr_t task_{};
|
||||
|
||||
public:
|
||||
constexpr packaged_task() = default;
|
||||
constexpr packaged_task() noexcept = default;
|
||||
|
||||
~packaged_task() {
|
||||
if ( task_) {
|
||||
|
||||
Reference in New Issue
Block a user