Cr.h: A Simple C Hot Reload Header-Only Library
github.com3 pointsby fungos0 comments
return std::move(ArgsResult Ok(options));
I could also have done: ArgsResult func() { ... return Ok(options); }
In this example there are two instantiations of the type Result<T, E>: typedef Result<ProgramOptions, Error> ArgsResult;
typedef Result<bool, Error> ProgramResult;
(Note that the typedefs aren't needed, but I prefer to be explicit there.)