Tomek-Stolarczyk
953cffa701
Replace memset with constexpr fill_n in bigint::align ( #4471 )
...
Use fill_n in place of memset in bigint::align to respect constexpr.
2025-06-23 16:18:16 -07:00
Vladislav Shchapov
571c02d475
Add xchar support for std::byte formatter ( #4480 )
...
Signed-off-by: Vladislav Shchapov <vladislav@shchapov.ru >
2025-06-23 14:02:11 -07:00
Remy Jette
f4345467fc
Fix compilation on clang-21 / libc++-21 ( #4477 )
...
`<cstdlib>` was not being included, so malloc and free were only declared
via transitive includes. Some includes changed in the latest libc++-21
build which broke fmt.
Also changed `malloc`/`free` to `std::malloc` and `std::free`, as
putting those symbols in the global namespace is optional for the
implementation when including `<cstdlib>`.
2025-06-21 07:28:14 -07:00
Victor Chernyakin
067bc479b4
Avoid redundant work when processing UTF-8 strings ( #4475 )
2025-06-20 06:39:06 -07:00
Mikhail Svetkin
5860688d7e
Enable constexpr support for fmt::format (fmtlib#3403) ( #4456 )
2025-06-07 07:16:49 -07:00
Victor Zverovich
46be88bc1e
Cleanup FP formatting
2025-06-01 09:15:20 -07:00
Victor Zverovich
fc0c76a075
Handle large precision
2025-06-01 08:49:41 -07:00
Victor Zverovich
6d51c78c1e
Cleanup FP formatting
2025-05-30 16:45:21 -07:00
Victor Zverovich
0f4e9d0bde
Cleanup FP formatting
2025-05-30 16:05:57 -07:00
Victor Zverovich
d9d50495ac
Optimize the default FP formatting
2025-05-30 13:45:04 -07:00
Victor Zverovich
befbc5fdb8
Fix ADL lookup for memory_buffer
2025-05-26 09:44:35 -07:00
Victor Zverovich
8aa1d6a9fb
Minor cleanup
2025-05-25 10:14:24 -07:00
Nikhil
6d79757a38
Interpret precision as display width ( #4443 )
2025-05-25 08:42:47 -07:00
Victor Zverovich
1ff0b7f5e1
Cleanup warning suppression
2025-05-24 09:37:01 -07:00
Edoardo Morandi
ea985e84f8
Remove some implicit conversions ( #4447 )
...
* fix: avoid an implicit cast
The "1" used for the bitshift is treated as int, and this causes an
implicit conversion to `UInt` when performing the logical and.
Explicitly casting the number to `UInt` avoids the warning.
* fix: avoid implicit conversions for indices
Some indices in `include/fmt/base.h` are expressed as `int` types, which
causes an implicit conversion to a `size_t` when they are actually used
as index. Explicitly casting the value avoids the warning.
* fix: avoid an implicit conversion using size_t
The number of bits is used to express the size of a buffer. Using an
`int` causes an implicit conversion warning, let's use a `size_t` which
is the right type for the job.
2025-05-24 09:22:03 -07:00
Tobias Schlüter
b723c021df
Give useful error when misusing fmt::ptr. ( #4453 )
...
static_assert(bla, "") prints an empty message but not the condition with at least MSVC. Add an informative message.
2025-05-20 12:21:06 -07:00
Victor Chernyakin
b5266fd3b9
Remove some redundant consts ( #4445 )
...
`constexpr` variables are implicitly `const`.
2025-05-12 10:41:58 -07:00
Victor Zverovich
b43b2f9537
Cleanup standard formatters
2025-05-04 13:04:06 -07:00
Victor Zverovich
41b3bed4d2
Clarify why we don't use qualified names
2025-04-26 10:12:06 -07:00
Victor Zverovich
9db5e4df22
Don't specialize std::is_floating_point
2025-04-26 08:17:05 -07:00
Victor Zverovich
906eaf2ddb
Make specifier order consistent
2025-04-25 12:10:21 -07:00
Victor Zverovich
f53055efe0
Revert "Workaround an ABI issue in spdlog"
...
This reverts commit 784eac839d .
2025-03-29 07:48:20 -07:00
Victor Zverovich
784eac839d
Workaround an ABI issue in spdlog
2025-03-22 07:01:45 -07:00
Victor Zverovich
dd780fde44
Add clang-3.4
2025-03-15 12:22:10 -07:00
Victor Zverovich
52eeeb52a6
Make exponent threshold depend on representation ( #3649 )
2025-01-26 12:10:48 -08:00
Victor Zverovich
5f0572acdc
Workaround a compilation error on gcc 9.4
2025-01-18 09:01:00 -08:00
Vladislav Shchapov
898d438571
Fix formatting into std::ostreambuf_iterator using a compiled format ( #4312 )
...
Signed-off-by: Vladislav Shchapov <vladislav@shchapov.ru >
2025-01-18 07:16:06 -08:00
Victor Zverovich
586ea06f02
Rename set_fill to copy_fill_from
2025-01-11 09:22:15 -08:00
Victor Zverovich
21aa0956d4
Restore ABI compatibility
2025-01-10 17:36:09 -08:00
Vladislav Shchapov
2c3a5698ef
Simplify a copying the fill from basic_specs
...
Signed-off-by: Vladislav Shchapov <vladislav@shchapov.ru >
2025-01-05 09:33:05 -08:00
Vladislav Shchapov
dad3237514
Fix a bug when copying the fill from basic_specs
...
Signed-off-by: Vladislav Shchapov <vladislav@shchapov.ru >
2025-01-03 09:16:21 -08:00
Victor Zverovich
feb72126b4
Readd FMT_NO_UNIQUE_ADDRESS
2024-12-26 13:54:06 -08:00
Sascha Hestermann
873670ba3f
Make parameter basic_memory_buffer<char, SIZE>& buf of to_string const
2024-12-11 12:19:20 -08:00
jsirpoma
385c01dc7b
Allow bit_cast to work for 80bit long double ( #4246 )
2024-11-29 01:25:21 -08:00
Victor Zverovich
a6c45dfea8
Fix modular build
2024-11-10 09:06:50 -08:00
Victor Zverovich
a35389b3c2
Corrently handle buffer flush
2024-11-09 10:56:31 -08:00
Vladislav Shchapov
542600013f
Suppress MSVC warnings "C4127: conditional expression is constant" by used const_check ( #4233 )
...
Signed-off-by: Vladislav Shchapov <vladislav@shchapov.ru >
2024-11-09 07:43:46 -08:00
Victor Zverovich
720da57bab
Remove reference to unused intrinsic
2024-11-03 17:18:33 -08:00
Victor Zverovich
680db66c3a
Explicitly export symbols from detail
2024-11-03 09:13:17 -08:00
Victor Zverovich
56ce41ef63
Remove initializer_list dependency
2024-11-03 08:26:25 -08:00
Victor Zverovich
cf50e4d6a4
Fix const[expr] in context API
2024-11-03 07:25:52 -08:00
Victor Zverovich
6580d7b808
Cleanup the format API
2024-11-03 06:57:36 -08:00
Victor Zverovich
7e73566ce7
Minor cleanup
2024-11-02 11:24:24 -07:00
Victor Zverovich
8523dba2dc
Make constexpr precede explicit consistently
2024-11-02 11:03:03 -07:00
Victor Zverovich
e3d3b24fc1
Minor cleanup
2024-11-02 10:46:58 -07:00
Victor Zverovich
4b8e2838f0
More cleanup
2024-10-27 10:56:52 -07:00
Victor Zverovich
7d4662f7ab
Remove FMT_BUILTIN_CTZ
2024-10-27 10:22:43 -07:00
Victor Zverovich
27110bc474
Minor cleanup
2024-10-27 09:44:25 -07:00
Victor Zverovich
a16ff5787b
Add support for code units > 0xFFFF in fill
2024-10-20 07:59:58 -07:00
Victor Zverovich
6bdc12a199
detail_exported -> detail
2024-10-09 11:04:55 -07:00