ToruNiina
3ac2c065eb
Merge branch 'reorder-headers' to master
2020-07-17 15:17:40 +09:00
ToruNiina
470f81dc94
fix : #123 merge branch 'windows-nominmax'
2020-07-10 20:55:53 +09:00
ToruNiina
93a9f2711c
test: add windows.h test
2020-07-10 18:32:59 +09:00
ToruNiina
761e576991
fix: workaround for windows.h that defines min/max
...
related to #123
2020-07-10 15:07:13 +09:00
ToruNiina
e6e84714c5
Merge branch 'master' into reorder-headers
2020-07-10 00:06:22 +09:00
Toru Niina
1efc99e11c
Merge pull request #121 from SeverinLeonhardt/fix_msvc_c4866
...
Fix MSVC warning C4866
2020-07-03 21:37:22 +09:00
Marius Maaß
92aa42a58e
Fix MSVC warning C4866
...
This fixes the warning "compiler may not enforce left-to-right
evaluation order for call to" that is caused by Visual Studio if this is
compiled with a target of C++17.
2020-07-03 08:00:47 +02:00
ToruNiina
b1c9df8998
feat: reorder headers following google c++ style
...
related to: #115
2020-06-28 00:58:20 +09:00
ToruNiina
9633e5fe5a
doc: add iteration examples into as_xxx section
...
related to #120
2020-06-21 14:11:26 +09:00
ToruNiina
2164fd39f7
doc: explain about the type of the top-level value
...
fix #120 .
2020-06-21 14:04:20 +09:00
ToruNiina
c22a3fd227
feat: support parse(std::filesystem::path) #113
2020-06-07 15:11:48 +09:00
ToruNiina
57c6652360
Merge branch 'master' into std-filesystem
2020-06-06 17:25:26 +09:00
ToruNiina
defde33544
fix: avoid ambiguity in overload resolution
...
Since both `std::string` and `std::filesystem::path` can be convertible
from `const char &[N]` (like, `parse("file.toml")`), after adding
`parse(std::filesystem::path)`, the overload resolution of
`parse("file.toml")` becomes ambiguous. By adding `parse(...)` that
exactly matches to `parse("file.toml")`, we can remove this ambiguity.
2020-06-06 17:18:02 +09:00
ToruNiina
46ed051740
fix: pass path.string as a filename
2020-06-05 23:15:19 +09:00
ToruNiina
2963d9a25b
feat: add std::filesystem::path support
2020-06-05 19:43:23 +09:00
Toru Niina
531f335417
Merge pull request #119 from halfelf/fix/readme_finding_value_in_table
...
fix: "Finding a value in an array" example in README
2020-05-20 00:27:33 +09:00
Shu Wang
f29f42277e
fix: "Finding a value in an array" example in README
2020-05-18 13:53:48 +08:00
Toru Niina
b03cde566a
Merge pull request #117 from usefulcat/master
...
when parsing a local_time, parse up to 9 digits worth (nanoseconds) o…
2020-05-11 13:36:23 +09:00
Scott McCaskill
57d4e196a3
when parsing a local_time, parse up to 9 digits worth (nanoseconds) of fractional seconds
2020-05-10 16:06:52 -05:00
ToruNiina
deb3ab6617
ci: add DISALLOW_HETEROGENEOUS_ARRAYS
2020-04-03 23:57:52 +09:00
ToruNiina
bf992e8f94
doc: update README for v1-rc1
2020-04-03 23:45:45 +09:00
ToruNiina
7c07f4382c
ci: add DISALLOW_HETEROGENEOUS_ARRAYS to toml-test
2020-04-03 23:43:59 +09:00
ToruNiina
125f608fa5
feat: remove TOML11_UNRELEASED_FEATURES.
...
v1.0.0-rc.1 has been released
2020-04-03 23:42:58 +09:00
ToruNiina
4d0ed847f9
test: remove default ctor from test code
2020-03-30 15:04:51 +09:00
ToruNiina
79594709fe
fix: don't use default ctor when converting to map
2020-03-30 15:02:26 +09:00
ToruNiina
55a738c11f
Merge branch 'do-not-require-default-ctor-108'
...
fix #108 .
2020-03-28 23:19:52 +09:00
ToruNiina
eebe1f87e6
fix: update cmake version 3.4.0
2020-03-28 17:59:10 +09:00
ToruNiina
95c3b5f538
feat: use push_back instead of resize
2020-03-27 18:06:26 +09:00
ToruNiina
e2790c9e7b
test: remove test_resize and add test_try_reserve
2020-03-27 18:06:02 +09:00
ToruNiina
9b52dc0131
feat: remove resize and add try_reserve
2020-03-27 18:05:31 +09:00
ToruNiina
5212992f05
feat: add is_std_forward_list
...
std::forward_list does not have push_back, insert, or emplace but
push_front, insert_after, and emplace_after. We need to distinguish it
from other continers.
2020-03-27 18:02:37 +09:00
ToruNiina
fcd6e47500
feat: add meta funcs, has_reserve/push_back_method
2020-03-27 18:01:47 +09:00
ToruNiina
31826b55ce
feat: avoid double checking in helper methods
2020-03-25 22:49:19 +09:00
ToruNiina
e3fc354e8d
Merge branch 'shorten-switch-cast'
2020-03-24 22:43:09 +09:00
ToruNiina
ea87f92358
doc: update exception section in README ( fix #107 )
2020-03-23 20:57:36 +09:00
ToruNiina
c259456282
ci: fix Travis.CI OS X build
2020-03-22 20:40:02 +09:00
ToruNiina
d7662347f2
refactor: shorten switch_cast definition by macro
2020-03-21 17:44:23 +09:00
ToruNiina
5f5539d402
feat: throw informative error from value.at(...)
2020-03-21 17:09:04 +09:00
ToruNiina
c2151cab0b
refactor: show func name in bad_cast from helpers
2020-03-21 17:06:34 +09:00
ToruNiina
653c87592c
feat: enable to show function name in bad_cast
2020-03-21 17:04:05 +09:00
ToruNiina
bdf4e75122
refactor: move helper function from get to value
2020-03-21 16:57:12 +09:00
ToruNiina
60d23116ba
Merge branch 'master' of github.com:ToruNiina/toml11
2020-03-13 14:38:33 +09:00
ToruNiina
af8cf9ddc5
refactor: remove redundant functions in serializer
2020-03-13 13:55:14 +09:00
ToruNiina
f125cca010
refactor: simplify serializer's template argument
2020-03-12 13:46:17 +09:00
ToruNiina
a20a2c0b80
doc: update README
2020-03-01 00:35:27 +09:00
ToruNiina
9694afbe32
Merge branch 'improve-error-message'
2020-02-29 23:43:23 +09:00
ToruNiina
d11e42ca7e
fix: explicitly say the table is top-level
...
The top-level table has its region at the first character of the file.
That means that, in the case when a key is not found in the top-level
table, the error message points to the first character. If the file has
its first table at the first line, the error message would be like this.
```console
[error] key "a" not found
--> example.toml
|
1 | [table]
| ^------ in this table
```
It actually points to the top-level table at the first character,
not `[table]`. But it is too confusing. To avoid the confusion, the
error message should explicitly say "key not found in the top-level
table".
2020-02-29 22:56:29 +09:00
ToruNiina
128b66bda9
refactor: add missing whitespace
2020-02-29 22:54:50 +09:00
ToruNiina
d1af42f151
refactor: add throw_key_not_found_error
...
and replace related throw statements with it
2020-02-29 22:23:15 +09:00
ToruNiina
8acf105b56
doc: update contributor list and test commands
2020-02-27 19:30:34 +09:00