rocksdb icon indicating copy to clipboard operation
rocksdb copied to clipboard

Improve internal lossless_cast to work on pointers

Open pdillinger opened this issue 7 months ago • 1 comments

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 avatar May 29 '25 03:05 pdillinger

@pdillinger has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

facebook-github-bot avatar May 29 '25 03:05 facebook-github-bot

@pdillinger merged this pull request in facebook/rocksdb@988357696dc7961789b32092a2e66effb7c2528e.

facebook-github-bot avatar Jul 10 '25 00:07 facebook-github-bot