mirror of
https://github.com/Expand-sys/CCash
synced 2026-03-22 20:47:10 +11:00
🐎 noexcept
This commit is contained in:
parent
dc6c3d70a0
commit
18452fdf1e
2 changed files with 4 additions and 4 deletions
|
|
@ -4,6 +4,6 @@
|
|||
struct StrFromSV_Wrapper
|
||||
{
|
||||
std::string str;
|
||||
StrFromSV_Wrapper(std::string_view sv);
|
||||
~StrFromSV_Wrapper();
|
||||
StrFromSV_Wrapper(std::string_view sv) noexcept;
|
||||
~StrFromSV_Wrapper() noexcept;
|
||||
};
|
||||
|
|
@ -32,12 +32,12 @@ struct string_data
|
|||
};
|
||||
template class rob<string_data, &std::string::_M_data>;
|
||||
|
||||
StrFromSV_Wrapper::StrFromSV_Wrapper(std::string_view sv)
|
||||
StrFromSV_Wrapper::StrFromSV_Wrapper(std::string_view sv) noexcept
|
||||
{
|
||||
(str.*result<string_data>::ptr)((char *)sv.data());
|
||||
(str.*result<string_length>::ptr)(sv.size());
|
||||
}
|
||||
StrFromSV_Wrapper::~StrFromSV_Wrapper()
|
||||
StrFromSV_Wrapper::~StrFromSV_Wrapper() noexcept
|
||||
{
|
||||
(str.*result<string_data>::ptr)(nullptr);
|
||||
(str.*result<string_length>::ptr)(0);
|
||||
|
|
|
|||
Loading…
Reference in a new issue