diff --git a/include/gsl.h b/include/gsl.h index 745a078..373f2e8 100644 --- a/include/gsl.h +++ b/include/gsl.h @@ -196,6 +196,7 @@ private: }; template not_null static_pointer_cast(not_null const & ptr) { return not_null{static_cast(ptr.get())}; } +template not_null const_pointer_cast(not_null const & ptr) { return not_null{const_cast(ptr.get())}; } } // namespace gsl