Fix ARM MSVC CE with "alignas(16) will be ignored" error.
GitOrigin-RevId: cd8c12dab843c5f8a1a93e71df75d6bb6fd5c573
This commit is contained in:
parent
06576b909b
commit
76056bebf8
@ -28,7 +28,7 @@ class As {
|
|||||||
}
|
}
|
||||||
~As() = default;
|
~As() = default;
|
||||||
|
|
||||||
As &operator=(T new_value) && {
|
As &operator=(const T &new_value) && {
|
||||||
std::memcpy(ptr_, &new_value, sizeof(T));
|
std::memcpy(ptr_, &new_value, sizeof(T));
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user