Amalgamate (#5891)

Signed-off-by: Niels Lohmann <mail@nlohmann.me>
This commit is contained in:
Niels Lohmann committed 2026-10-23 10:34:03 +02:00
1 parent 7506a1b0bf
commit bf27f0ba99
3 files changed
+1571 -1829

No files matched your search

+4 -1
View File
@@ -2056,7 +2056,10 @@ TEST_CASE("find_ascii_copyable_run agrees with is_ascii_copyable for every byte"
buffer.fill(static_cast<unsigned char>('a'));
buffer[position] = static_cast<unsigned char>(value);
const bool copyable = nlohmann::detail::is_ascii_copyable(static_cast<unsigned char>(value));
for (const std::size_t n : {position, position + 1, std::size_t{24}})
for (const std::size_t n :
{
position, position + 1, std::size_t{24}
})
{
if (n > 24)
{