Commit c3978896 authored by Damien L-G's avatar Damien L-G

Default construct RAII with _p as a null pointer

parent e73f49ca
......@@ -30,13 +30,14 @@ public:
AllocatorTraits<T>::free(_p);
_p = nullptr;
}
RAII() = default;
RAII(RAII const &) = delete;
RAII &operator=(RAII &) = delete;
operator T *() { return _p; }
operator T const *() const { return _p; }
private:
T *_p;
T *_p = nullptr;
};
template <> struct AllocatorTraits<gsl_interp_accel> {
......
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