ToruNiina
7339ce39d5
fix : #159 Merge branch 'conversion-precedence'
2021-05-14 20:10:03 +09:00
ToruNiina
287be5a575
ci: clang11 is too new to install it
...
without adding a new ppa
2021-05-14 18:25:29 +09:00
ToruNiina
798856946f
ci: add new compilers
...
gcc 10, 11, clang 11
2021-05-14 18:19:44 +09:00
ToruNiina
07c1d10212
ci: avoid clang-9 + C++20 because it lacks <=>
...
And the operator<=> is used in the (GNU-) standard library
implementation installed by default.
Note: consider using libc++ library
2021-05-14 16:16:23 +09:00
ToruNiina
0ac3919e08
feat: from<T> and from_toml precede constructor
...
constructor sometimes has `template<T> ctor(const T&)` and it causes
ambiguity. To avoid it, from<T> and T.from_toml precedes any
constructor. But, to check the ambiguity between from<T> and from_toml,
they do not precede each other. If anyone define both from<T> and
from_toml, it causes compilation error.
2021-05-14 16:05:54 +09:00
ToruNiina
e622595426
fix: fix has_specialized_from/into
...
to avoid ambiguity
2021-05-14 16:01:43 +09:00
ToruNiina
72ee8caf09
refactor: use has_specialized_from<T>
...
to check if toml::from<T> exists for a specific T
2021-05-14 15:53:34 +09:00
ToruNiina
b6e2c6e235
feat: add detail::has_specialization_from/into
2021-05-14 15:46:00 +09:00
ToruNiina
c5a22b9d88
fix : #158 Merge branch 'gcc-wshadow'
...
The -Wshadow warning is avoided from the source code level
2021-05-11 00:08:32 +09:00
ToruNiina
7e90282175
fix: add region where -Wshadow is ignored on GCC 4
2021-05-10 23:00:30 +09:00
ToruNiina
b8291af42b
fix: rename func args to avoid -Wshadow in GCC 4.x
2021-05-10 22:56:16 +09:00
ToruNiina
cd60045014
fix: gcc 7 introduces wshadow variants
2021-05-10 21:51:51 +09:00
ToruNiina
db0d9a024b
test: add -Wshadow while compiling tests
2021-05-10 20:49:41 +09:00
ToruNiina
4acc563b28
feat: explicitly avoid -Wshadow=global in GCC
2021-05-10 20:49:20 +09:00
ToruNiina
dce50142e6
fix: avoid argname key
to supress warning
...
about shadowing
2021-05-10 20:47:08 +09:00
ToruNiina
06e8b853ba
test: add Wshadow=local
2021-05-04 17:50:14 +09:00
ToruNiina
e3092335aa
Merge branch 'enable-to-change-default-comment-handling'
2021-04-30 20:28:38 +09:00
ToruNiina
31b9b79312
ci: suppress clang-8 / c++20 because of gcc header
2021-04-28 15:12:04 +09:00
ToruNiina
beb665ba58
test: explicitly specify if comments are preserved
2021-04-27 13:19:55 +09:00
ToruNiina
b51ef5e869
test: explicitly specify the comment preservation
2021-04-27 13:18:39 +09:00
ToruNiina
21ea4a348d
test: explicitly specify template arguments
...
toml::value is an alias of default parameters, so we need to avoid
conflict of definitions between default and non-default parameters
2021-04-27 13:12:37 +09:00
ToruNiina
c4a803df50
test: add comment/no-comment cases to parse_array
...
When we add a macro to change the default comment preservation scheme,
some of the current tests that assume comments are discarded by defualt
fails. To make it more robust, we need to explicitly specify the comment
preservation scheme and add test cases for both of discard_ and
preserve_comments.
2021-04-27 13:05:03 +09:00
ToruNiina
c40e0dbd37
feat: use comment macro everywhere
2021-04-16 15:29:24 +09:00
ToruNiina
d90c26f9ac
feat: add TOML11_PRESERVE_COMMENTS_BY_DEFAULT
2021-04-16 15:28:58 +09:00
ToruNiina
b592ddcca2
fix: add SFINAE to avoid incorrect matching
2021-04-14 13:09:51 +09:00
ToruNiina
5518b2b155
refactor: simplify last_one_in_pack meta func
2021-04-14 13:09:25 +09:00
ToruNiina
ba3d41d913
feat( #156 ): add find_or(value, keys..., opt)
2021-04-14 11:22:19 +09:00
ToruNiina
8bc09d552a
fix( #139 ): Merge branch 'auto-conversion-macro'
2021-04-02 19:29:04 +09:00
ToruNiina
03c846dc9d
doc: add conversion macro to README
2021-04-02 19:28:45 +09:00
ToruNiina
e658a0126c
test: disable macro testing if the macro is diabled
2021-04-02 18:26:24 +09:00
ToruNiina
6e3967e26e
ci: check compiler version detected by cmake
2021-04-02 18:24:17 +09:00
ToruNiina
db1f42b5da
fix: enable to control macro definition
2021-04-02 17:21:25 +09:00
ToruNiina
c7d6d793cb
ci: install compiler
2021-04-02 17:00:00 +09:00
ToruNiina
14c6430dda
Merge branch 'master' into auto-conversion-macro
2021-04-02 16:25:41 +09:00
ToruNiina
b4bc704e6e
fix: trying to workaround MSVC preprocessor
2021-04-02 15:39:23 +09:00
ToruNiina
3f6e873aba
fix: merge branch 'uneven-spacing-between-tables'
2021-03-31 11:53:54 +09:00
ToruNiina
a3b8dd6787
fix( #152 ): add newline btw kv-pair and subtables
2021-03-31 10:52:18 +09:00
ToruNiina
c121492071
fix: uneven spacing between tables
...
related: issue #152
2021-03-29 17:48:03 +09:00
ToruNiina
5e3f8f9105
chore: update version values
2021-03-25 22:43:37 +09:00
ToruNiina
17a15d3c18
doc: update contributor list and link in README
2021-03-25 22:33:05 +09:00
ToruNiina
42cc111b05
ci: activate linux/windows
...
confirmed that macos works.
2021-03-25 15:01:40 +09:00
ToruNiina
5e0ee32854
ci: trying to add macos to github actions [skip travis] [skip appveyor]
...
it is already listed in travis CI, but not in the GH actions
2021-03-25 14:53:28 +09:00
ToruNiina
2c5cc431fe
ci: re-activate linux CI
2021-03-25 14:33:55 +09:00
ToruNiina
970f7cb36a
ci: trying to update boost installation settings [skip travis] [skip appveyor]
2021-03-25 14:03:26 +09:00
ToruNiina
b924e70e3c
feat: add a simple way to disable <filesystem>
...
As jwillikers pointed out in #150 , there is a case where compiler
defines the corresponding feature test macro of <filesystem> but is
actually not available. The macro is a way to disable the feature
regardless of the status of feature test macro.
2021-03-25 11:44:11 +09:00
Toru Niina
7782258e68
Merge pull request #148 from sneakypete81/patch-1
...
Fix typo in error message
2021-01-31 14:26:02 +09:00
sneakypete81
08859c36d0
Fix typo in error message
2021-01-30 20:04:00 +00:00
ToruNiina
d3de136562
doc: simplity example code a bit
2021-01-25 17:25:29 +09:00
ToruNiina
43183e2ad1
Merge branch 'master' of github.com:ToruNiina/toml11
2020-12-29 18:54:58 +09:00
ToruNiina
e9144b41fb
test: returning toml::value directly from into<T>
2020-12-29 18:53:10 +09:00