Commit Graph

1559 Commits

Author SHA1 Message Date
ToruNiina
93428f295a doc: add find<optional> to docs 2025-01-05 14:50:17 +09:00
ToruNiina
d13ca04041 test: add test_find<optional<T>> 2025-01-05 14:27:26 +09:00
ToruNiina
7bfbfcab95 feat: add find<optional<T>> 2025-01-05 14:27:09 +09:00
ToruNiina
c7717b6d70 ci: remove deprecated os and duplicated os 2024-11-27 01:51:29 +09:00
ToruNiina
7f6c574ff5 doc: update CPM in README with OPTIONS 2024-10-14 20:25:53 +09:00
Toru Niina
f925e7f287 Merge pull request #277 from oldoldtea/fix-readme 2024-09-30 21:14:01 +09:00
somebody
5445905e5e Update README.md
Co-authored-by: Toru Niina <niina.toru.68u@gmail.com>
2024-09-30 11:04:57 +08:00
lz
576a71aa0e update README.md 2024-09-29 15:27:07 +08:00
lz
2c96a2059f 🐞 fix(README.md): fix syntax errors 2024-09-29 15:25:57 +08:00
ToruNiina
d050c6b137 feat [skip ci]: update single_include 2024-09-23 13:44:01 +00:00
Toru Niina
9cda72d308 Merge pull request #276 from hayt/main
fix: prevent size_t-max length string allocation
2024-09-23 22:43:28 +09:00
hayt
b0d9e81d85 fix: prevent size_t-max length string allocation
prevent an issue, where a string was created with size_t(0)-1 length.

When creating underlines for error output, the current column sometimes had cases
where it was set to 0 caused an underflow.
2024-09-22 10:15:47 +02:00
Toru Niina
4b74012723 Merge pull request #271 from SeverinLeonhardt/CMP0127
Fix use with CMake 3.21 and older
2024-08-29 21:30:14 +09:00
Severin Leonhardt
5e786476dd Fix use with CMake 3.21 and older
The minimum required CMake version is 3.16 but CMP0127 was only
introduced in 3.22. This results in errors with versions 3.16 - 3.21:

```
CMake Error at CMakeLists.txt:28 (cmake_policy):

  Policy "CMP0127" is not known to this version of CMake.
```

Fixed by only setting the policy when it's actually available.
2024-08-27 09:40:48 +02:00
ToruNiina
26d403e461 feat [skip ci]: update single_include 2024-08-19 14:10:59 +00:00
Toru Niina
f40f4d7770 Merge pull request #268 from kontura/zero-init
fix: add missing zero initialization to region
2024-08-19 23:10:35 +09:00
Aleš Matěj
9c7cef94a5 fix: add missing zero initialization to region 2024-08-19 14:18:29 +02:00
ToruNiina
cc0bee4fd4 feat: bump version v4.2.0 2024-08-12 12:47:30 +09:00
ToruNiina
b415dd81ed doc: update changelog 2024-08-12 12:47:09 +09:00
ToruNiina
0c833452e4 Merge branch 'main' of github.com:ToruNiina/toml11 2024-08-12 00:24:30 +09:00
ToruNiina
070fa825e4 doc: update README 2024-08-12 00:23:59 +09:00
ToruNiina
a2e8d68c95 doc: update doc for thread-local colorization 2024-08-12 00:23:17 +09:00
ToruNiina
b90b5bdb35 feat [skip ci]: update single_include 2024-08-10 09:35:38 +00:00
ToruNiina
9b58c7e321 Merge branch 'find-or-deep-nest' 2024-08-10 18:35:10 +09:00
ToruNiina
5d74160df3 fix: do not use recursion in last_one(Ts...) 2024-08-10 14:19:11 +09:00
ToruNiina
3498af032f test: add deeply nested example to find_or 2024-08-10 14:17:05 +09:00
ToruNiina
9b914db23d doc: add description about ordered_type_config 2024-08-10 02:10:54 +09:00
Toru Niina
fcb1d3d7e5 Merge pull request #264 from jackwil1/jackwil1-docs-typo
Fix typos in documentation template syntax
2024-08-08 23:56:36 +09:00
Jack W
9d39b1f54a Fix template syntax in jp docs 2024-08-08 17:57:05 +12:00
Jack W
157d65f91f Fix template syntax in en docs 2024-08-08 17:55:13 +12:00
ToruNiina
9481c477f1 feat [skip ci]: update single_include 2024-08-07 16:25:53 +00:00
ToruNiina
f886a91c02 feat: Merge branch 'ci-osx-latest' 2024-08-08 01:04:38 +09:00
ToruNiina
834ec3a835 feat: include <exception> for terminate 2024-08-08 00:58:00 +09:00
ToruNiina
df8f978f3d ci: add macos with latest (unstable) xcode 2024-08-07 23:57:31 +09:00
ToruNiina
6421df3c6d ci: add missing cpu-cores var 2024-08-07 00:41:33 +09:00
ToruNiina
9f7434bc6e ci: add osx-14 to build envs 2024-08-07 00:41:17 +09:00
ToruNiina
91b7cd637c feat [skip ci]: update single_include 2024-08-06 15:37:10 +00:00
ToruNiina
63d9c04718 fix #262: merge 'check-empty-aot-while-format' 2024-08-07 00:36:24 +09:00
ToruNiina
80c3e343e7 fix: if aot is empty, format as oneline
[[aot]] itself defines an empty table, so there is no way to format an
empty array-of-tables as table-like format. the only way to format an
empty array is: = [].
2024-08-06 01:28:59 +09:00
ToruNiina
12c0f379f2 fix: typo in format output 2024-07-25 01:41:21 +09:00
ToruNiina
ff3d866728 feat [skip ci]: update single_include 2024-07-24 16:30:58 +00:00
Toru Niina
35ac3d1356 Merge pull request #261 from ken-matsui/make-thread-local-optional
Make thread_local for color_mode optional
2024-07-25 01:30:38 +09:00
Ken Matsui
696335aaf7 Make thread_local for color_mode optional 2024-07-24 07:04:40 -07:00
ToruNiina
83843fd699 feat [skip ci]: update single_include 2024-07-24 12:22:48 +00:00
Toru Niina
455fadbae0 Merge pull request #260 from ken-matsui/support-optional-conversion
Support std::optional members for TOML11_DEFINE_CONVERSION_NON_INTRUSIVE
2024-07-24 21:22:24 +09:00
Ken Matsui
6d4d953304 Support std::optional members for TOML11_DEFINE_CONVERSION_NON_INTRUSIVE 2024-07-23 10:03:58 -07:00
ToruNiina
572781971f doc: add doc about CPM 2024-07-23 01:29:13 +09:00
ToruNiina
0072e740d5 feat [skip ci]: update single_include 2024-07-21 15:53:41 +00:00
Toru Niina
4dd83fe778 Merge pull request #258 from pinotree/read-streamsize
fix: manually cast file size to std::streamsize
2024-07-22 00:41:56 +09:00
Pino Toscano
fe19e7ee0a fix: manually cast file size to std::streamsize
When reading a file to vector, manually cast the file size (represented
as std::streamoff hidden as auto) to std::streamsize, which is the type
for std::istream::read(); this avoids the warning/error

  error: conversion from ‘long long int’ to ‘std::streamsize’ {aka ‘int’} may change value [-Werror=conversion]

This means a truncation happens on 32bit architectures, however that
seems a limitation of the standard library.
2024-07-21 10:36:40 +02:00