diff options
author | tastytea | 2020-03-20 13:43:08 +0100 |
---|---|---|
committer | tastytea | 2020-03-20 13:49:30 +0100 |
commit | 9d37bebdc8e507e331f05869acfac71137e998bb (patch) | |
tree | 987aff318280552e5e561f2a8b877b5c564b2085 | |
parent | fc32e8ac0a05d1bd86246ae9660e2e289a60bb05 (diff) | |
download | mastodonpp-9d37bebdc8e507e331f05869acfac71137e998bb.tar mastodonpp-9d37bebdc8e507e331f05869acfac71137e998bb.tar.gz mastodonpp-9d37bebdc8e507e331f05869acfac71137e998bb.zip |
Add missing constructors and assignment operators
… to Instance and Connection.
-rw-r--r-- | include/connection.hpp | 19 | ||||
-rw-r--r-- | include/instance.hpp | 19 |
2 files changed, 38 insertions, 0 deletions
diff --git a/include/connection.hpp b/include/connection.hpp index 1d3a273..c6d557c 100644 --- a/include/connection.hpp +++ b/include/connection.hpp @@ -93,6 +93,25 @@ public: } /*! + * @brief Copy constructor. A new CURLWrapper is constructed. + * + * @since 0.5.2 + */ + Connection(const Connection &other) = default; + + //! Move constructor + Connection(Connection &&other) noexcept = delete; + + //! Destructor + ~Connection() noexcept override = default; + + //! Copy assignment operator + Connection& operator=(const Connection &other) = delete; + + //! Move assignment operator + Connection& operator=(Connection &&other) noexcept = delete; + + /*! * @brief Make a HTTP GET call with parameters. * * Example: diff --git a/include/instance.hpp b/include/instance.hpp index 225f106..1997068 100644 --- a/include/instance.hpp +++ b/include/instance.hpp @@ -66,6 +66,25 @@ public: {} /*! + * @brief Copy constructor. A new CURLWrapper is constructed. + * + * @since 0.5.2 + */ + Instance(const Instance &other) = default; + + //! Move constructor + Instance(Instance &&other) noexcept = delete; + + //! Destructor + ~Instance() noexcept override = default; + + //! Copy assignment operator + Instance& operator=(const Instance &other) = delete; + + //! Move assignment operator + Instance& operator=(Instance &&other) noexcept = delete; + + /*! * @brief Set the properties of the connection of the calling class up. * * Meant for internal use. This aligns the properties of the connection of |