DescriptionAdd simple bit_cast unittests, avoid static_assert on gcc+libc++
These should work provided that the is_trivially_copyable logic is not
broken, and will fail to compile of the type traits lie. They do on
Android where we have gcc+libc++, so avoid being too strict there.
BUG=607158
Committed: https://crrev.com/474f4a511b7bdbfcf09c1e914ee99fd9e35db0f8
Cr-Commit-Position: refs/heads/master@{#390472}
Patch Set 1 #Patch Set 2 : Fix bit_cast.h, fix windows test compile #
Messages
Total messages: 15 (6 generated)
|