|
55 | 55 |
|
56 | 56 | #define SLICK_LOGGER_VERSION_MAJOR 1 |
57 | 57 | #define SLICK_LOGGER_VERSION_MINOR 0 |
58 | | -#define SLICK_LOGGER_VERSION_PATCH 4 |
59 | | -#define SLICK_LOGGER_VERSION "1.0.4" |
| 58 | +#define SLICK_LOGGER_VERSION_PATCH 5 |
| 59 | +#define SLICK_LOGGER_VERSION "1.0.5" |
60 | 60 |
|
61 | 61 | #ifndef SLICK_LOGGER_MAX_ARGS |
62 | 62 | #define SLICK_LOGGER_MAX_ARGS 20 |
@@ -1626,6 +1626,17 @@ inline void Logger::enqueue_format_args(LogEntry& entry, std::format_args fa) { |
1626 | 1626 | // Custom type via handle: std::format_context is not publicly |
1627 | 1627 | // constructible, so store a placeholder instead. |
1628 | 1628 | enqueue_argument(entry.args[arg_idx], std::string_view{"<handle>"}); |
| 1629 | +#ifdef __SIZEOF_INT128__ |
| 1630 | + } else if constexpr (std::is_same_v<DT, __int128>) { |
| 1631 | + enqueue_argument(entry.args[arg_idx], static_cast<long long>(v)); |
| 1632 | + } else if constexpr (std::is_same_v<DT, unsigned __int128>) { |
| 1633 | + enqueue_argument(entry.args[arg_idx], static_cast<unsigned long long>(v)); |
| 1634 | +#endif |
| 1635 | +#ifdef __SIZEOF_FLOAT128__ |
| 1636 | + } else if constexpr (std::is_same_v<DT, __float128> || |
| 1637 | + std::is_same_v<DT, _Float128>) { |
| 1638 | + enqueue_argument(entry.args[arg_idx], static_cast<double>(v)); |
| 1639 | +#endif |
1629 | 1640 | } else { |
1630 | 1641 | enqueue_argument(entry.args[arg_idx], std::forward<T>(v)); |
1631 | 1642 | } |
|
0 commit comments