diff options
Diffstat (limited to 'src/crepe/util')
-rw-r--r-- | src/crepe/util/OptionalRef.h | 13 | ||||
-rw-r--r-- | src/crepe/util/OptionalRef.hpp | 3 |
2 files changed, 7 insertions, 9 deletions
diff --git a/src/crepe/util/OptionalRef.h b/src/crepe/util/OptionalRef.h index 8417a25..0a94ae5 100644 --- a/src/crepe/util/OptionalRef.h +++ b/src/crepe/util/OptionalRef.h @@ -23,7 +23,7 @@ public: * * \return Reference to this (required for operator) */ - OptionalRef<T> & operator=(T & ref); + OptionalRef<T> & operator=(T & ref); /** * \brief Check if this reference is not empty * @@ -51,13 +51,13 @@ public: void clear() noexcept; //! Copy constructor - OptionalRef(const OptionalRef<T> &); + OptionalRef(const OptionalRef<T> &); //! Move constructor - OptionalRef(OptionalRef<T> &&); + OptionalRef(OptionalRef<T> &&); //! Copy assignment - OptionalRef<T> & operator=(const OptionalRef<T> &); + OptionalRef<T> & operator=(const OptionalRef<T> &); //! Move assignment - OptionalRef<T> & operator=(OptionalRef<T> &&); + OptionalRef<T> & operator=(OptionalRef<T> &&); private: /** @@ -68,7 +68,6 @@ private: T * ref = nullptr; }; -} +} // namespace crepe #include "OptionalRef.hpp" - diff --git a/src/crepe/util/OptionalRef.hpp b/src/crepe/util/OptionalRef.hpp index 7b201b0..ee41f61 100644 --- a/src/crepe/util/OptionalRef.hpp +++ b/src/crepe/util/OptionalRef.hpp @@ -63,5 +63,4 @@ OptionalRef<T>::operator bool() const noexcept { return this->ref != nullptr; } -} - +} // namespace crepe |