Files
toml11/toml
Moritz Klammler e064a5c371 Avoid unnecessary copies of parser result
The 'result' class has unwrap() and unwrap_err() member functions
overloaded for const lvalue and rvalue *this to avoid an unnecessarily
copying the to-be unwrapped object of its containing object is going to
be discarded anyway.  Alas, the parse() function toml/parser.hpp file
stored the parse result in a local `const` variable so, although the
unwrap call would have been the last use of the object in each case, the
unnecessary copy would still be made.  This patch removes the `const`
and adds a std::move() to actually benefit from the already implemented
optimization.
2022-09-29 19:02:52 +02:00
..
2022-05-29 00:37:39 +09:00
2021-10-09 11:12:58 +09:00
2021-05-25 21:40:41 +09:00
2021-05-25 21:40:41 +09:00
2021-08-27 19:52:45 -04:00