Skip to content

Commit

Permalink
fix: fix clang c++17 build
Browse files Browse the repository at this point in the history
  • Loading branch information
Mishura4 committed Oct 9, 2023
1 parent 2d11c8f commit e3cf38b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions include/dpp/managed.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,44 +41,44 @@ namespace dpp {
/**
* @brief Constructor, initialises id to 0.
*/
constexpr managed() noexcept = default;
managed() = default;

/**
* @brief Constructor, initialises ID
* @param nid ID to set
*/
constexpr managed(const snowflake nid) noexcept : id{nid} {}
managed(const snowflake nid) : id{nid} {}

/**
* @brief Copy constructor
* @param rhs Object to copy
*/
constexpr managed(const managed &rhs) noexcept = default;
managed(const managed &rhs) = default;

/**
* @brief Move constructor
*
* Effectively equivalent to copy constructor
* @param rhs Object to move from
*/
constexpr managed(managed &&rhs) noexcept = default;
managed(managed &&rhs) = default;

/**
* @brief Destroy the managed object
*/
virtual ~managed() noexcept = default;
virtual ~managed() = default;

/**
* @brief Copy assignment operator
* @param rhs Object to copy
*/
constexpr managed &operator=(const managed& rhs) noexcept = default;
managed &operator=(const managed& rhs) = default;

/**
* @brief Move assignment operator
* @param rhs Object to move from
*/
constexpr managed &operator=(managed&& rhs) noexcept = default;
managed &operator=(managed&& rhs) = default;

/**
* @brief Get the creation time of this object according to Discord.
Expand Down

0 comments on commit e3cf38b

Please sign in to comment.