Commit 1ea27a36 authored by Damien L-G's avatar Damien L-G

Delete copy constructor and copy assignment op for RAII class

parent 0b1fcfe2
......@@ -26,6 +26,8 @@ public:
RAII(Args &&... args)
: _p{AllocatorTraits<T>::allocate(std::forward<Args>(args)...)} {}
~RAII() { AllocatorTraits<T>::free(_p); }
RAII(RAII const &) = delete;
RAII &operator=(RAII &) = delete;
operator T *() { return _p; }
operator T const *() const { return _p; }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment