Add const_pointer_cast

This commit is contained in:
Samuel García Salas 2015-11-14 03:38:05 +01:00
parent fcdff2f205
commit b10edad451

View File

@ -196,6 +196,7 @@ private:
};
template<class T, class U> not_null<T> static_pointer_cast(not_null<U> const & ptr) { return not_null<T>{static_cast<T>(ptr.get())}; }
template<class T, class U> not_null<T> const_pointer_cast(not_null<U> const & ptr) { return not_null<T>{const_cast<T>(ptr.get())}; }
} // namespace gsl