Skip to content

Commit

Permalink
rocket/cow_string: Cleanup
Browse files Browse the repository at this point in the history
(cherry picked from commit bdbc106)
Signed-off-by: LIU Hao <[email protected]>
  • Loading branch information
lhmouse committed Apr 22, 2024
1 parent d49cd5d commit 875842d
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions rocket/cow_string.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -244,18 +244,15 @@ class basic_cow_string
return *this;
}

template<size_t N>
template<typename ycharT, size_t N,
ROCKET_ENABLE_IF(is_same<ycharT, value_type>::value)>
basic_cow_string&
operator=(const value_type (*ps)[N]) & noexcept
operator=(const ycharT (*ps)[N]) & noexcept
{
this->m_ref = shallow_type(ps);
return *this;
}

template<size_t N>
basic_cow_string&
operator=(value_type (*ps)[N]) & = delete;

basic_cow_string&
operator=(const basic_cow_string& other) & noexcept
{
Expand Down

0 comments on commit 875842d

Please sign in to comment.