bit_cast
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
CMakeLists.txt
LICENSE.md
README.md
bit_cast.h
test.cc

README.md

Bit-casting object representations

Sample implementation for the C++ standards committee paper on bit_cast.

The implementation conforms to the API as described in the paper, and showcases concept checking using:

  • C++ concepts from the Concepts TS, as available in GCC 6 and later.
  • SFINAE.
  • enable_if.

The associated tests try to hit interesting / horrible uses of this feature.