Suppress class-memaccess warning with gcc 8.2 (#907)
Summary:
The following code won't compile with g++ 8.2 when `-Wall -Werror` is turned on (`-Werror=class-memaccess` implied):
std::memcpy(dst, src, n * sizeof(Value))
where in `VectorContainerPolicy`'s case, `Value` is typically an `std::pair`, which indeed has no trivial copy-assignment.
Pull Request resolved: https://github.com/facebook/folly/pull/907
Reviewed By: yfeldblum
Differential Revision: D9244951
Pulled By: Orvid
fbshipit-source-id: 26787d43dab7d4212c5975a509dfd8703b0a157c
Showing
Please register or sign in to comment