Skip to content

Commit

Permalink
forward lidt forgot to updare
Browse files Browse the repository at this point in the history
  • Loading branch information
trcrsired committed Oct 11, 2024
1 parent 9fd34a8 commit 45bd125
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions include/fast_io_dsal/impl/forward_list.h
Original file line number Diff line number Diff line change
Expand Up @@ -735,29 +735,30 @@ class forward_list
this->emplace_front(::std::move(val));
}

#if 0
constexpr forward_list(forward_list const &other)
requires(::std::copyable<value_type>)
{
forward_list_destroyer destroyer(this);
void *itt{__builtin_addressof(this->imp)};
node_type *it{static_cast<node_type *>(itt)};
for (auto const &ele : other)
{
this->insert_after(ele);
it = this->emplace_after_impl(it, ele);
}
destroyer.release();
}
#endif
constexpr forward_list(forward_list const &) = delete;

#if 0
constexpr forward_list &operator=(forward_list const &other)
requires(::std::copyable<value_type>)
{
forward_list temp(other);
this->operator=(::std::move(temp));
if (this != __builtin_addressof(other))
{
forward_list temp(other);
this->operator=(::std::move(temp));
}
return *this;
}
#endif
constexpr forward_list &operator=(forward_list const &) = delete;

constexpr forward_list(forward_list &&other) noexcept
Expand Down

0 comments on commit 45bd125

Please sign in to comment.