|
@@ -156,16 +156,8 @@ public:
|
|
|
/** @brief Event emitters are friend classes of connections. */
|
|
/** @brief Event emitters are friend classes of connections. */
|
|
|
friend class Emitter;
|
|
friend class Emitter;
|
|
|
|
|
|
|
|
- /*! @brief Default constructor, explicit on purpose. */
|
|
|
|
|
- explicit Connection() = default;
|
|
|
|
|
-
|
|
|
|
|
- /*! @brief Default copy constructor. */
|
|
|
|
|
- Connection(const Connection &) = default;
|
|
|
|
|
- /*! @brief Default move constructor. */
|
|
|
|
|
- Connection(Connection &&) = default;
|
|
|
|
|
-
|
|
|
|
|
- /*! @brief Default destructor. */
|
|
|
|
|
- ~Connection() = default;
|
|
|
|
|
|
|
+ /*! @brief Default constructor. */
|
|
|
|
|
+ Connection() noexcept = default;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* @brief Creates a connection that wraps its underlying instance.
|
|
* @brief Creates a connection that wraps its underlying instance.
|
|
@@ -175,6 +167,11 @@ public:
|
|
|
: Handler<Event>::connection_type{std::move(conn)}
|
|
: Handler<Event>::connection_type{std::move(conn)}
|
|
|
{}
|
|
{}
|
|
|
|
|
|
|
|
|
|
+ /*! @brief Default copy constructor. */
|
|
|
|
|
+ Connection(const Connection &) = default;
|
|
|
|
|
+ /*! @brief Default move constructor. */
|
|
|
|
|
+ Connection(Connection &&) = default;
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* @brief Default copy assignament operator.
|
|
* @brief Default copy assignament operator.
|
|
|
* @return This connection.
|
|
* @return This connection.
|
|
@@ -188,19 +185,19 @@ public:
|
|
|
Connection & operator=(Connection &&) = default;
|
|
Connection & operator=(Connection &&) = default;
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
- /*! @brief Default constructor, explicit on purpose. */
|
|
|
|
|
- explicit Emitter() noexcept = default;
|
|
|
|
|
-
|
|
|
|
|
- /*! @brief Copying an emitter isn't allowed. */
|
|
|
|
|
- Emitter(const Emitter &) = delete;
|
|
|
|
|
- /*! @brief Default move constructor. */
|
|
|
|
|
- Emitter(Emitter &&) = default;
|
|
|
|
|
|
|
+ /*! @brief Default constructor. */
|
|
|
|
|
+ Emitter() noexcept = default;
|
|
|
|
|
|
|
|
/*! @brief Default destructor. */
|
|
/*! @brief Default destructor. */
|
|
|
virtual ~Emitter() noexcept {
|
|
virtual ~Emitter() noexcept {
|
|
|
static_assert(std::is_base_of<Emitter<Derived>, Derived>::value, "!");
|
|
static_assert(std::is_base_of<Emitter<Derived>, Derived>::value, "!");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ /*! @brief Copying an emitter isn't allowed. */
|
|
|
|
|
+ Emitter(const Emitter &) = delete;
|
|
|
|
|
+ /*! @brief Default move constructor. */
|
|
|
|
|
+ Emitter(Emitter &&) = default;
|
|
|
|
|
+
|
|
|
/*! @brief Copying an emitter isn't allowed. @return This emitter. */
|
|
/*! @brief Copying an emitter isn't allowed. @return This emitter. */
|
|
|
Emitter & operator=(const Emitter &) = delete;
|
|
Emitter & operator=(const Emitter &) = delete;
|
|
|
/*! @brief Default move assignament operator. @return This emitter. */
|
|
/*! @brief Default move assignament operator. @return This emitter. */
|