diff --git a/BAN/include/BAN/Bitcast.h b/BAN/include/BAN/Bitcast.h new file mode 100644 index 00000000..e025a91b --- /dev/null +++ b/BAN/include/BAN/Bitcast.h @@ -0,0 +1,12 @@ +#pragma once + +namespace BAN +{ + + template + constexpr To bit_cast(const From& from) + { + return __builtin_bit_cast(To, from); + } + +}