tgockel / json-voorhees

A killer modern C++ library for interacting with JSON.
http://tgockel.github.io/json-voorhees/
Apache License 2.0
128 stars 18 forks source link

Creates `result` type. #160

Closed tgockel closed 4 years ago

tgockel commented 4 years ago

A result<TValue, TError> represents a value which might be a success or a failure. It is similar to std::variant<TValue, TError>, but additional meaning is attached to the values to allow disambiguation when TValue and TError are the same type.