Fix ARM MSVC CE with "alignas(16) will be ignored" error.

GitOrigin-RevId: cd8c12dab843c5f8a1a93e71df75d6bb6fd5c573
This commit is contained in:
levlam 2020-07-14 17:14:35 +03:00
parent 06576b909b
commit 76056bebf8

View File

@ -28,7 +28,7 @@ class As {
}
~As() = default;
As &operator=(T new_value) && {
As &operator=(const T &new_value) && {
std::memcpy(ptr_, &new_value, sizeof(T));
return *this;
}