ToruNiina
a7a2272b29
chore: turn more diagnostic flags on
2020-01-13 00:16:33 +09:00
ToruNiina
dc0bca2bb6
fix: update patch version ...
2020-01-12 23:18:03 +09:00
ToruNiina
490abe04fd
refactor: remove redundant template argument
2020-01-12 23:07:17 +09:00
ToruNiina
81ed4c0e9d
Merge branch 'master' of github.com:ToruNiina/toml11
2020-01-10 21:17:17 +09:00
ToruNiina
1b07baf184
doc: add toml::get specialization using ctor
2020-01-10 20:46:54 +09:00
ToruNiina
9073d52159
test: check get<foo> works with constructor
2020-01-10 20:39:56 +09:00
ToruNiina
55260654bf
feat: get user-defined value by constructor
...
If a user-defined constructor has constructor(const toml::value&),
then it should be convertible in `toml::get` and `toml::find`.
2020-01-10 20:38:52 +09:00
ToruNiina
aa6271af75
doc: update README
2020-01-09 01:40:05 +09:00
ToruNiina
c54a03f189
Merge branch 'master' into find-idx
2020-01-09 00:27:51 +09:00
ToruNiina
c153c0e8c3
ci: test with sanitizers
2020-01-08 23:28:17 +09:00
ToruNiina
1f90af8e67
ci: refactor list of env vars
2020-01-08 23:17:38 +09:00
ToruNiina
a0c5192b74
chore: add option to use sanitizers
2020-01-08 23:07:05 +09:00
ToruNiina
7f020f3f44
refactor: remove error prefix
...
that will automatically be added in format_underline
2020-01-07 22:27:13 +09:00
ToruNiina
827b433389
Merge branch 'master' into find-idx
2020-01-07 22:13:15 +09:00
ToruNiina
b1827e6fca
test: check immutability of inline tables
2019-12-20 19:46:54 +09:00
ToruNiina
18f84088b4
perf: avoid tmp str construction while checking
2019-12-19 22:13:47 +09:00
ToruNiina
c199bd8b49
feat: enable to access the 1st char of region
2019-12-19 22:13:33 +09:00
ToruNiina
5b35c1a74e
fix: prohibit modification on inline table
...
According to toml-lang/toml:36d3091b3 "Clarify that inline tables are
immutable", check if it adds key-value pair to an inline table.
This is one of the unreleased (after-0.5.0) toml feature. But this is
marked as "Clarify", so TOML-lang intended that inline tables are
immutable in all version.
2019-12-19 22:02:17 +09:00
ToruNiina
d3513c0f84
fix: fmt line num in err msg correctly
2019-12-17 19:35:26 +09:00
ToruNiina
8567f09cbf
chore: update version info in CMake
2019-12-13 20:25:52 +09:00
ToruNiina
a6d24b02d5
Merge branch 'colorize-err-msg'
2019-12-13 20:23:27 +09:00
ToruNiina
08bf5ffbdf
doc: put screenshot to colorize-error-message
2019-12-13 17:28:43 +09:00
ToruNiina
a945bd6eac
ci: pass TOML11_COLORIZE_ERROR_MESSAGE on CircleCI
2019-12-13 16:47:33 +09:00
ToruNiina
f4ac286b0f
doc: add description about format_error
2019-12-12 21:31:21 +09:00
ToruNiina
f31dc6ba37
doc: add example of hints in an error message
2019-12-12 18:09:13 +09:00
ToruNiina
fecd50dfeb
doc: add contributors
2019-12-12 18:02:16 +09:00
ToruNiina
d48d454a61
doc: modify README a bit
2019-12-12 17:55:20 +09:00
ToruNiina
4688c235f5
refactor: rename internal macro value
2019-12-12 17:38:29 +09:00
ToruNiina
5c146857a3
Merge branch 'master' into colorize-err-msg
2019-12-11 22:49:38 +09:00
ToruNiina
bc51699415
Merge branch 'bracket-operator'
2019-12-11 19:36:21 +09:00
Toru Niina
8b923d56e9
Merge pull request #96 from kenichiice/icpc_warning2
...
Suppress warning on Intel C++ Compiler
2019-12-11 18:30:44 +09:00
OGAWA KenIchi
3190c1da9f
fix: suppress warning on Intel C++ Compiler
2019-12-11 17:47:16 +09:00
ToruNiina
a41dc08025
doc: add document of operator[]
2019-12-10 20:06:01 +09:00
ToruNiina
0c084b3a5c
test: add test: accessing via bracket operator
2019-12-10 00:08:40 +09:00
ToruNiina
8fbeaabfd9
feat: add operator[] to access table/array
2019-12-10 00:00:05 +09:00
ToruNiina
331de4ea5d
fix: use datetime info while getting time offset
...
to convert offset_datetime to system_clock::time_point.
2019-12-08 22:44:12 +11:00
ToruNiina
b246f5ac5c
fix: combine date and time to convert loc datetime
...
Normally DST begins at A.M. 3 or 4. If we re-use conversion operator
of local_date and local_time independently, the conversion fails if
it is the day when DST begins or ends. Since local_date considers the
time is 00:00 A.M. and local_time does not consider DST because it
does not have any date information. We need to consider both date and
time information at the same time to convert it correctly.
2019-12-08 22:38:49 +11:00
ToruNiina
89714fb24b
doc: note about local timezone and datetime
2019-12-06 21:15:31 +09:00
ToruNiina
62c01f9826
fix: consider timezone correctly
...
explicitly set tm.tm_isdst = 0 and use UTC offset
2019-12-06 20:57:51 +09:00
ToruNiina
5a8d368927
feat: add thread-safe detail::gmtime_s
2019-12-06 20:33:15 +09:00
ToruNiina
28519f5712
doc: add colorize section to README
2019-12-02 17:08:00 +09:00
Toru Niina
63fdbd25cf
Merge pull request #95 from blockparty-sh/unused-variable-warning
...
Suppress unused variable warning
2019-11-23 12:59:21 +09:00
blockparty
6d41a1adb9
Suppress unused variable warning
2019-11-22 05:59:55 -06:00
Toru Niina
26a09b2f65
Merge pull request #93 from blockparty-sh/fix_compile_error
...
Check if features are defined
2019-11-21 21:57:26 +09:00
blockparty
7e62dad6dc
Check if features are defined
2019-11-21 05:51:31 -06:00
ToruNiina
2fd466a3c3
fix: skip only the prefix, keep spaces
2019-11-14 15:32:17 +09:00
ToruNiina
6f7539dc6a
fix: deduplicate [error] prefix in the messages
2019-11-14 15:31:27 +09:00
ToruNiina
f290390c63
fix: consider the no-space cases like [error]:
2019-11-13 18:14:42 +09:00
ToruNiina
571baa2c26
refactor: remove nocolor:: operations
...
since color can be on-off at runtime
2019-11-13 18:08:31 +09:00
ToruNiina
bbe33e87d9
feat: detect [error] prefix duplication
2019-11-13 18:05:37 +09:00