File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -450,6 +450,8 @@ class observable_unique_ptr :
450450 friend base;
451451
452452public:
453+ static_assert (!std::is_array_v<T>, " T[] is not supported" );
454+
453455 using typename base::element_type;
454456 using typename base::observer_type;
455457 using typename base::pointer;
@@ -682,6 +684,8 @@ class observable_sealed_ptr :
682684 friend base;
683685
684686public:
687+ static_assert (!std::is_array_v<T>, " T[] is not supported" );
688+
685689 using typename base::element_type;
686690 using typename base::observer_type;
687691 using typename base::pointer;
@@ -933,6 +937,8 @@ class observer_ptr {
933937 }
934938
935939public:
940+ static_assert (!std::is_array_v<T>, " T[] is not supported" );
941+
936942 // / Type of the pointed object
937943 using element_type = T;
938944
You can’t perform that action at this time.
0 commit comments