Make unique_ref final

This commit is contained in:
Sebastian Messmer 2015-06-26 02:08:14 +02:00
parent a98cf8200e
commit e8c7efe626

View File

@ -24,7 +24,7 @@ namespace cpputils {
* Never use the old instance after moving! * Never use the old instance after moving!
*/ */
template<typename T> template<typename T>
class unique_ref { class unique_ref final {
public: public:
unique_ref(unique_ref&& from): _target(std::move(from._target)) {} unique_ref(unique_ref&& from): _target(std::move(from._target)) {}