Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions includes/rtm/impl/bit_cast.impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,16 @@
#include "rtm/impl/compiler_utils.h"
#include "rtm/impl/detect_cpp_version.h"

//////////////////////////////////////////////////////////////////////////
// Detect if the current compilation environment supports bit operations.
//////////////////////////////////////////////////////////////////////////

#if !defined(RTM_NO_BIT_CAST)
#if !defined(__cpp_lib_bitops)
#define RTM_NO_BIT_CAST
#endif
#endif

// See config.h for details on how to configure std::bit_cast for your project

// Use RTM_NO_BIT_CAST to disable std::bit_cast
Expand Down
Loading