diff --git a/ctl/shared_ptr.h b/ctl/shared_ptr.h index 3cf46e306..40e7a1a7d 100644 --- a/ctl/shared_ptr.h +++ b/ctl/shared_ptr.h @@ -9,7 +9,8 @@ #include "unique_ptr.h" // XXX currently needed to use placement-new syntax (move to cxx.inc?) -void* operator new(size_t, void*) noexcept; +void* +operator new(size_t, void*) noexcept; namespace ctl { @@ -30,7 +31,7 @@ struct ptr_ref using type = T&; }; -template <> +template<> struct ptr_ref { using type = void;