Commit Graph

64 Commits

Author SHA1 Message Date
ToruNiina
834ec3a835 feat: include <exception> for terminate 2024-08-08 00:58:00 +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
Ken Matsui
696335aaf7 Make thread_local for color_mode optional 2024-07-24 07:04:40 -07:00
Ken Matsui
6d4d953304 Support std::optional members for TOML11_DEFINE_CONVERSION_NON_INTRUSIVE 2024-07-23 10:03:58 -07: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
ToruNiina
f33ca743fb chore: bump version 4.1.0 2024-07-21 14:48:47 +09:00
ToruNiina
96460a15d4 feat: support key string conversion in get<map> 2024-07-20 20:57:42 +09:00
ToruNiina
f3a1586a44 Merge branch 'u8string' into v4_1_0 2024-07-20 17:59:30 +09:00
ToruNiina
098569a96d Merge branch 'main' into v4_1_0 2024-07-20 17:57:05 +09:00
ToruNiina
43f5a74bf0 feat: support string_type in toml::format 2024-07-20 17:23:05 +09:00
ToruNiina
6085c53ea2 fix: skip null char in string literal 2024-07-20 17:21:56 +09:00
xep
b853860a8f Add: template-version into_toml (Github issue #255) 2024-07-20 10:44:45 +08:00
ToruNiina
eba1aa2fde feat: take string type itself when conversion 2024-07-20 04:36:32 +09:00
ToruNiina
8434a6b18b Merge branch 'u8string' into v4_1_0 2024-07-18 01:03:58 +09:00
ToruNiina
d9449747f3 fix: add constraint to array-like/table-like 2024-07-17 01:03:47 +09:00
ToruNiina
00e0ce12e7 feat: generalize ctor and remove feature macro 2024-07-16 23:48:15 +09:00
ToruNiina
d99f260c1a Merge branch 'origin/output-operator' into v4_1_0 2024-07-16 00:31:20 +09:00
ToruNiina
c0a8b60a5d feat: enable to convert generic string 2024-07-16 00:17:18 +09:00
ToruNiina
0f0f9cf3c1 feat: set upper/lowercase while serialization 2024-07-14 15:12:34 +09:00
ToruNiina
49b373d4f5 feat: parse hex int upper/lowercase 2024-07-14 15:12:18 +09:00
ToruNiina
acd6ed9a1e feat: add uppercase to integer fmt
for hex integer
2024-07-14 15:11:05 +09:00
ToruNiina
654ec0e013 feat: add stream operator to value 2024-07-14 14:20:04 +09:00
ToruNiina
f86d04f64d fix: toml::get<array-like> avoid u8string 2024-07-10 02:42:25 +09:00
ToruNiina
b78a37c826 feat: add u8string ctor 2024-07-10 02:39:51 +09:00
ToruNiina
29fbb6b695 feat: enable to convert key char type 2024-07-10 02:39:04 +09:00
ToruNiina
31810136d1 feat: generalize string converter 2024-07-10 02:37:29 +09:00
ToruNiina
a77516a2d0 feat: add string converter 2024-07-10 02:22:50 +09:00
ToruNiina
826e6414a0 feat: add detail::is_std_basic_string
to check if type T is a kind of std::basic_string<Char,...>
2024-07-10 02:04:31 +09:00
Andreas Keller
143437d309 Fix not checking for \\r\\n when parsing line comments 2024-07-09 09:50:31 +02:00
ToruNiina
5ac47b8983 chore: bump version to 4.0.3 2024-07-06 18:59:31 +09:00
ToruNiina
ed1604ca58 fix: ignore argument for NDEBUG build 2024-07-06 03:38:25 +09:00
ToruNiina
b2ea268d69 fix: unreachable code 2024-07-06 02:30:09 +09:00
ToruNiina
d72493a2fc fix: remove name of unused argument 2024-07-06 01:37:11 +09:00
ToruNiina
0eb9a90abf refactor: move HAS_CHAR8_T to version.hpp 2024-07-05 23:40:16 +09:00
ToruNiina
0cc0ef959b fix: directly access to member if type is the same 2024-07-05 23:32:00 +09:00
ToruNiina
d4742334ce fix: add detail::make_error_info_rec overload
that converts basic_value to location
2024-07-02 23:34:49 +09:00
ToruNiina
ccd941dc5b fix: remove default arg from fwd decl 2024-07-02 00:03:10 +09:00
ToruNiina
fc493afb4e chore: update version 4.0.2 2024-06-30 23:59:23 +09:00
ToruNiina
de092e5457 fix: cast fsize to avoid sign-conv 2024-06-30 00:55:45 +09:00
ToruNiina
5b0ea5e95c fix #249: make sure all the file content is read 2024-06-30 00:29:34 +09:00
ToruNiina
42734ea642 fix: typo in type-trait impl 2024-06-28 00:07:26 +09:00
ToruNiina
932acba7f1 fix #250: bump patch version macro in version.hpp 2024-06-27 00:30:38 +09:00
ToruNiina
3c09d3046c refactor: remove detail::(local|gm)time_s from fwd 2024-06-23 23:25:57 +09:00
ToruNiina
7af0e66c25 refactor: add make_xxx_error funcs 2024-06-23 15:36:50 +09:00
ToruNiina
9e27fd24b7 Merge branch 'fix-format-location-first-line' 2024-06-20 22:18:44 +09:00
ToruNiina
d023a93e3c fix: do not duplicate empty line in err msg 2024-06-20 21:11:43 +09:00
ToruNiina
995b25efe0 fix: pass empty filename to format_location
not to skip the first empty line
2024-06-20 21:10:42 +09:00
Egor Pugin
a32289dc70 Fix incorrect operator<<() argument type that gives build error. 2024-06-19 17:42:10 +03:00
ToruNiina
7149b3cb29 refactor: rename member vars, adding _ at the end 2024-06-19 01:55:57 +09:00