Dynamic arguments storage. Implementation of enhancement from issue #1170. (#1584)

This commit is contained in:
Vladimir Solontsov
2020-03-16 17:00:29 +03:00
committed by GitHub
parent 85050aa2e6
commit 6012dc9ab4
4 changed files with 282 additions and 4 deletions

View File

@@ -213,10 +213,6 @@ FMT_END_NAMESPACE
FMT_BEGIN_NAMESPACE
namespace internal {
// A helper function to suppress bogus "conditional expression is constant"
// warnings.
template <typename T> FMT_CONSTEXPR T const_check(T value) { return value; }
// An equivalent of `*reinterpret_cast<Dest*>(&source)` that doesn't have
// undefined behavior (e.g. due to type aliasing).
// Example: uint64_t d = bit_cast<uint64_t>(2.718);