Closed ahsanabbas123 closed 11 months ago
While building with vcpkg on linux x86_64, we get errors due to strict aliasing not being complied with - as mentioned in https://github.com/microsoft/vcpkg/pull/34797.
linux x86_64
error: dereferencing type-punned pointer will break strict-aliasing rules [-Werror=strict-aliasing] 379 | *reinterpret_cast<const bsl::uint64_t*>(&val);
We use bsl::memcpy instead.
bsl::memcpy
Problem statement
While building with vcpkg on
linux x86_64
, we get errors due to strict aliasing not being complied with - as mentioned in https://github.com/microsoft/vcpkg/pull/34797.Proposed changes
We use
bsl::memcpy
instead.