ToruNiina
7a0ecf977d
feat: add find_or(table, key, fallback)
...
get_or(value, fallback) is still ok, but get_or(table, key, fallback)
is now deprecated.
2019-03-18 17:44:03 +09:00
ToruNiina
aade704411
refactor: remove needless overload of get_or
2019-03-18 17:10:18 +09:00
ToruNiina
ca3f6102ef
fix: correctly resolve overloads of get_or
2019-03-18 16:44:36 +09:00
ToruNiina
43014c6619
fix: remove redefined default template argument
2019-03-16 16:24:10 +09:00
ToruNiina
04bfeba3f2
merge branch master into get-any-type
2019-03-16 15:58:18 +09:00
ToruNiina
190636b791
fix: support getting a container of external types
2019-03-16 15:52:22 +09:00
ToruNiina
b1b72a94a8
feat: support conversion with external types
2019-03-16 14:44:04 +09:00
ToruNiina
fd063af7ce
refactor: make include guard style uniform
2019-03-16 14:19:47 +09:00
ToruNiina
0babe8d589
fix: use format_underline for N regions everywhere
2019-03-14 00:59:10 +09:00
ToruNiina
17def14ab6
add default template arg to toml::find
...
in most of the use cases, toml::value is used (to show error message).
2018-12-27 15:58:50 +09:00
ToruNiina
74fc70cfee
return copied object from except
...
having reference makes some technical difficulties.
2018-12-17 10:57:40 +09:00
ToruNiina
c2e733a65d
enable to get toml::value as toml::value
2018-12-16 20:50:40 +09:00
ToruNiina
fd21d5dd95
add simplest copyright notice
2018-12-13 20:44:10 +09:00
ToruNiina
acc7b7870f
remove format_error_for_value and add get_region instead
...
it is convenient to have get_region function that can access region_info
in toml::value. get_region is placed in toml::detail and made friend of
toml::value because I don't want to make toml::value::region_info public
and keep it internal use only.
2018-12-13 16:13:05 +09:00
ToruNiina
26e0d87d3b
enable nanoseconds in datetimes
2018-12-13 12:49:53 +09:00
ToruNiina
27a80b1214
rename get(table, key) to find()
2018-12-13 02:00:13 +09:00
ToruNiina
affa159c82
add get_or(value, key, opt)
2018-12-13 01:29:23 +09:00
ToruNiina
5d29509d98
remove duplicated default argument for SFINAE
2018-12-12 18:58:54 +09:00
ToruNiina
717e03cd4a
add find-get overload functions
2018-12-12 17:55:34 +09:00
ToruNiina
dc060ba840
add explicit std::move to toml::get(&&)
2018-12-12 17:22:41 +09:00
ToruNiina
0c9b785969
add missing include file
2018-12-12 16:11:37 +09:00
ToruNiina
38135940e9
add expect<T>(toml::value)
2018-12-11 11:36:40 +09:00
ToruNiina
75c136924b
add datetimes to chrono
2018-12-10 22:06:06 +09:00
ToruNiina
3f991c4759
improve power of get
2018-12-10 15:58:20 +09:00
ToruNiina
9555817901
add get<pair>, get<tuple>
2018-05-05 11:46:09 +09:00
ToruNiina
e54deacf1a
simplify SFINAE expressions in toml::get
2018-05-05 11:42:11 +09:00
ToruNiina
3083f65493
add get_or
2017-12-11 12:04:57 +09:00
ToruNiina
3203d39dad
enable toml::get to make static array (like std::array)
2017-05-07 10:40:17 +09:00
ToruNiina
78f25dd66d
split files
2017-04-21 13:14:53 +09:00