File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -353,7 +353,8 @@ constexpr bool has_enable_observer_from_this =
353353template <typename T, typename Deleter, typename Policy>
354354class basic_observable_ptr final {
355355public:
356- static_assert (!std::is_array_v<T>, " T[] is not supported" );
356+ static_assert (!std::is_reference_v<T>, " cannot create a pointer to a reference" );
357+ static_assert (!std::is_array_v<T>, " cannot create a pointer to an array" );
357358
358359 // / Policy for this smart pointer
359360 using policy = Policy;
@@ -920,7 +921,8 @@ bool operator!=(
920921template <typename T, typename Policy>
921922class basic_observer_ptr final {
922923public:
923- static_assert (!std::is_array_v<T>, " T[] is not supported" );
924+ static_assert (!std::is_reference_v<T>, " cannot create a pointer to a reference" );
925+ static_assert (!std::is_array_v<T>, " cannot create a pointer to an array" );
924926
925927 // / Policy for the control block
926928 using observer_policy = Policy;
You can’t perform that action at this time.
0 commit comments