- Quaternions
- Started Tests for Quaternions - Fixed some style issues with constructors
This commit is contained in:
@@ -107,7 +107,8 @@ public:
|
||||
/// \param ptr The resource to own
|
||||
/// \param del The deleter
|
||||
explicit constexpr unique_ptr(pointer_t ptr, const delete_t& del)
|
||||
: _delete(del), _handle(ptr) {
|
||||
: _delete(del)
|
||||
, _handle(ptr) {
|
||||
}
|
||||
|
||||
///
|
||||
@@ -115,14 +116,15 @@ public:
|
||||
/// \param ptr The resource to own
|
||||
/// \param del The deleter
|
||||
explicit constexpr unique_ptr(pointer_t ptr, delete_t&& del)
|
||||
: _delete(del), _handle(ptr) {
|
||||
: _delete(del)
|
||||
, _handle(ptr) {
|
||||
}
|
||||
|
||||
///
|
||||
/// \brief Move Constructor, transfers ownership from `other`
|
||||
/// \param other The unique_ptr to take ownership from
|
||||
constexpr unique_ptr(unique_ptr&& other)
|
||||
: _handle(other._handle) {
|
||||
: _handle(other._handle) {
|
||||
other._handle = nullptr;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user