ToruNiina
717f5929c2
feat: use detail::none_t instead of char
...
Although the error value from combinators currently does not have any
information, it can have an information because it is a char value. It
is better to use no-information-type explicitly to make it clear that
it does not have any information. So I added none_t in toml::detai and
use it in combinators and parsers as an error value from combinators.
2019-05-31 17:07:52 +09:00
Ivan Shynkarenka
db6f3d5d11
Fix Visual Studio 2019 warnings in pedantic compilation mode (/W4 /WX)
2019-05-10 14:58:22 +03:00
ToruNiina
fd063af7ce
refactor: make include guard style uniform
2019-03-16 14:19:47 +09:00
ToruNiina
32dcc35918
move return_type_of_t from result to traits
2019-02-13 13:34:03 +09:00
ToruNiina
e3217cd572
quit returning rvalue ref from unwrap_or
2018-12-17 23:17:45 +09:00
ToruNiina
24723226f1
remove template argument from result::unwrap_or
2018-12-17 19:18:16 +09:00
ToruNiina
7b3684b54e
add and_other and or_other to toml::result
...
effectively same as Rust's std::Result::and and or.
2018-12-17 18:24:41 +09:00
ToruNiina
fd21d5dd95
add simplest copyright notice
2018-12-13 20:44:10 +09:00
ToruNiina
901c299c40
add unwrap_or to result
2018-12-13 01:28:55 +09:00
ToruNiina
d75a977066
improve error message for bad unwrap a bit
2018-12-11 11:35:07 +09:00
ToruNiina
8388664fc6
add map_err_or_else to result
2018-12-08 22:44:15 +09:00
ToruNiina
b3b5682cc0
add message to bad_unwrap
2018-12-06 17:15:19 +09:00
ToruNiina
e3f6805629
add conversion members to result
2018-12-06 12:47:14 +09:00
ToruNiina
1dddc6e26c
add missing std::move for ctors
2018-12-06 12:46:32 +09:00
ToruNiina
6c0a12148b
add result<T, E> struct to handle errors
...
aiming later updates and refactoring of parsers
2018-12-02 18:01:37 +09:00