rocksdb
rocksdb copied to clipboard
Improve internal lossless_cast to work on pointers
Summary: I was going to use this in some code I was working on but ended up not needing it. But it's useful nonetheless and I'm using it in a few places to replace reinterpret_cast.
Test Plan: existing tests, manually see compilation fail when pointed-to types are not same size integral types
@pdillinger has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.
@pdillinger merged this pull request in facebook/rocksdb@988357696dc7961789b32092a2e66effb7c2528e.