File tree 1 file changed +2
-4
lines changed
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -129,6 +129,8 @@ SN_TYPE_PAR_DEF class sharing_node_innert : public sharing_node_baset
129
129
130
130
bool shares_with (const sharing_node_innert &other) const
131
131
{
132
+ SN_ASSERT (data && other.data );
133
+
132
134
return data == other.data ;
133
135
}
134
136
@@ -151,8 +153,6 @@ SN_TYPE_PAR_DEF class sharing_node_innert : public sharing_node_baset
151
153
152
154
d_it &write_internal ()
153
155
{
154
- SN_ASSERT (data.use_count () > 0 );
155
-
156
156
if (data == empty_data)
157
157
{
158
158
data = make_shared_derived_u<SN_PTR_TYPE_ARGS>();
@@ -176,8 +176,6 @@ SN_TYPE_PAR_DEF class sharing_node_innert : public sharing_node_baset
176
176
177
177
d_ct &write_container ()
178
178
{
179
- SN_ASSERT (data.use_count () > 0 );
180
-
181
179
if (data == empty_data)
182
180
{
183
181
data = make_shared_derived_v<SN_PTR_TYPE_ARGS>();
You can’t perform that action at this time.
0 commit comments