OGAWA KenIchi
99d565bcc4
doc: fix include path
...
* see #72
2020-09-07 15:32:28 +09:00
ToruNiina
5f38127692
feat: allow comments before comma
...
replace ws by ws_comment_newline, as suggested.
discussed here: toml-lang/toml/issues/766
2020-08-16 11:03:58 +09:00
ToruNiina
3c3ebd88b4
feat: improve error message about invalid keys
2020-08-09 18:38:50 +09:00
ToruNiina
08f7ea9c56
refactor: remove extraneous whitespaces in errmsg
2020-08-09 18:38:21 +09:00
ToruNiina
cde29399f4
fix: use 1 in source_location as the default pos
2020-08-07 22:24:01 +09:00
ToruNiina
eec429e31b
ci: add REQUIRE_FILESYSTEM_LIBRARY on CI
2020-08-06 16:35:49 +09:00
ToruNiina
79ddcaece6
chore: add CMake option to link with (std)c++fs
2020-08-06 16:29:24 +09:00
ToruNiina
8398b9a08b
test: use array for char*
...
forgot to delete
2020-08-05 20:43:48 +09:00
ToruNiina
9c5abf0bfd
test: check each overload compiles
2020-08-05 20:29:07 +09:00
ToruNiina
4fa94d45b3
fix: use const char* instead of &char[N]
...
to enable to pass char*, not only string literal
2020-08-04 20:08:58 +09:00
ToruNiina
46e84a9cc2
refactor: Merge branch 'refactor-region'
2020-07-31 12:45:52 +09:00
ToruNiina
4e6ae9a994
refactor: avoid string construct in format_ul
2020-07-30 16:11:35 +09:00
ToruNiina
f23c003d2f
fix: add missing namespace specifier
2020-07-28 00:04:25 +09:00
ToruNiina
4b719f0806
refactor: use location() instead of get_region
2020-07-27 23:15:14 +09:00
ToruNiina
22ace027de
refactor: rm template from detail::change_region
2020-07-27 23:04:24 +09:00
ToruNiina
bc219af5b5
refactor: use location() member instead of ctor
2020-07-27 23:03:33 +09:00
ToruNiina
68e8a31659
refactor: remove needless addressof() call
2020-07-27 23:00:40 +09:00
ToruNiina
32a5341d09
refactor: use source_location, not region_base*
2020-07-27 22:29:18 +09:00
ToruNiina
ce68f6f4c2
refactor: check (always-valid) ptr before deref
2020-07-27 21:32:35 +09:00
ToruNiina
e696aabd11
refactor: change internal interface to reduce code
...
to remove `std::addressof` calls, get_region(toml::value) now
returns a pointer to region.
2020-07-27 00:48:04 +09:00
ToruNiina
7fb93e2f54
fix: add missing explicit
to detail::region
2020-07-27 00:20:26 +09:00
ToruNiina
19cc9a2edf
refactor: remove template from detail::region
2020-07-25 22:01:34 +09:00
ToruNiina
72f5afb6af
refactor: remove template from detail::location
2020-07-25 21:06:26 +09:00
ToruNiina
a8fa14d159
refactor: remove vec() method, use a constructor
2020-07-21 20:55:18 +09:00
ToruNiina
75999aa9ad
refactor: add a constructor to location
...
By adding the constructor, vec() would not be not needed. But inserting
Container = std::string makes the constructor ambiguous, so it breaks
the current code.
2020-07-21 20:53:44 +09:00
ToruNiina
259da54edb
refactor: always use vector<char> in location
...
`location` and `region` have a (shared_ptr to the) container of TOML
contents. Those take a template argument to allow both std::vector<char>
and std::string as an interanal container. But since those are internal
feature, i.e. it should not be used by a user directly, this template
can be removed by re-writing a parser a bit. This introduces a
complexity to toml11 error reporting system, so I'm removing this.
First, remove all the location<std::string> from the parser. Then the
template argument can be removed because everyone uses std::vector<char>
now.
2020-07-20 19:52:11 +09:00
ToruNiina
b461f363da
refactor: add a method to reduce complexity later
2020-07-20 19:40:55 +09:00
ToruNiina
d43139a471
doc: update Contributors section
2020-07-19 19:50:02 +09:00
ToruNiina
a344668fa2
doc: update version to 3.5.0
2020-07-19 19:12:18 +09:00
ToruNiina
25aa97a435
doc: add actions status badge to README
2020-07-19 19:09:47 +09:00
ToruNiina
af70d3dfed
ci [skip ci]: add github actions workflow file
2020-07-19 17:13:39 +09:00
ToruNiina
8b5cfb4105
test: add missing binary
flag to ifstream
2020-07-19 16:57:20 +09:00
ToruNiina
4e0624aa60
feat: make sure the last null is removed
2020-07-19 16:56:31 +09:00
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