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
ToruNiina
2fb8793f1a
doc: add document about basic_value and toml::into
...
related to #146 .
2020-12-29 18:52:07 +09:00
Toru Niina
6c8a53915a
Merge pull request #144 from amerry/sstream-include-fix
...
Add missing standard includes
2020-12-10 01:53:31 +09:00
Alex Merry
db2d33ca4b
Add missing header for std::out_of_range exception
...
Failure seen on GCC 4.8.5 when including "toml/value.hpp".
2020-12-09 10:39:10 +00:00
Alex Merry
935da51769
Add missing include for ostringstream
...
Since region.hpp no longer includes <iostream> (but only <iomanip>),
source_location.hpp no longer includes a header that provides
std::ostringstream. Including <sstream> fixes this.
2020-12-09 10:19:07 +00:00
ToruNiina
be0d4bd0a9
fix: fix #141 ; Merge branch 'issue-141'
2020-11-05 00:01:41 +09:00
ToruNiina
9b472a6c72
fix: check it is empty before calling back
2020-11-04 23:24:59 +09:00
ToruNiina
1ead14589e
fix: check if it is empty before calling back()
2020-11-04 23:24:02 +09:00
ToruNiina
b13065b1b5
fix : #142 Merge branch 'issue-142'
2020-11-03 21:05:03 +09:00
ToruNiina
a6581ee66b
fix: an empty array is not an array of table
2020-11-03 20:34:01 +09:00
ToruNiina
0dafa7ee42
test: add case where a table should be inlined
...
array-of-table implicitly defines an array. If the array itself has a
comment, we need to format it explicitly.
2020-10-18 20:45:12 +09:00
ToruNiina
908b91079b
fix: distinguish the comments and try to keep it
...
If a value has a comment, we need to try to write it explicitly.
2020-10-18 20:43:33 +09:00
ToruNiina
fce6ff317e
refactor: distinguish the reason of failure
2020-10-18 18:36:05 +09:00
ToruNiina
fd50b11523
refactor: add write_comments()
2020-10-18 18:35:56 +09:00
ToruNiina
9090b8273c
refactor: move array-of-table stuff to a function
2020-10-18 17:20:06 +09:00
ToruNiina
bfae1ab86c
test: add test for auto-generated conversion
2020-10-16 21:40:54 +09:00
ToruNiina
88882b523f
feat: add a macro defines convertion automatically
2020-10-16 21:40:47 +09:00
ToruNiina
382e3dc3ab
refactor: use serializer::is_array_of_tables
2020-10-14 22:27:29 +09:00
ToruNiina
f7bfcdd7aa
fix: check all the elements in an array
...
while checking if the array is array-of-tables or not (heterogeneous
arrays are allowed, so there might be an array that has a table and
an integer at the same time)
2020-10-14 18:00:04 +09:00
ToruNiina
2e41a26785
Merge branch 'master' of github.com:ToruNiina/toml11 into master
2020-10-14 15:35:18 +09:00
ToruNiina
f3378f0ac1
fix : #131 distinguish implicitly declared array
2020-10-14 15:32:08 +09:00
ToruNiina
12ee73d6a9
ci: suppress some of the combinations in CI
...
clang-7 with C++20 fails with the same reason, 'undefined reference to
std::allocator<char>::(de)allocate'.
2020-10-14 00:38:46 +09:00
ToruNiina
503baf52ed
ci: suppress clang 6 + cxx20
...
Since the main branch that passed the same check 9 days ago also fails
with clang-6 and C++20 because of the same error, "undefined reference
to allocator_traits<char>::allocate". It could be a change in upstream
and since others (e.g. gcc) works well, I suppress the setting at this
moment.
2020-10-14 00:05:55 +09:00
ToruNiina
2deb75052c
ci: use the same version of clang
...
I don't think it resolves the problem, undefined reference to
'std::allocator<char>::deallocate(char*, unsigned long)', though
2020-10-13 23:37:52 +09:00
ToruNiina
290dca3d67
test: add test for comment duplication
2020-10-13 22:04:28 +09:00