Closed jharmer95 closed 1 year ago
Added support for std::optional
. std::variant
, and std::reference_wrapper
require some more tricky work
std::variant
is now supported (up to a fixed number of params, currently 10).std::reference_wrapper
is also supported as it is the new interface to call "bound" RPCs explicitly
std::reference_wrapper
(i.e. std::vector<std::reference_wrapper>
) are not supported
Feature Request: Support std::optional, std::variant, and std::reference_wrapper
Brief Summary of Request
std::optional
,std::variant
, andstd::reference_wrapper
are common standard library types that should be somewhat trivial to serializeWhat Is The Value Added With This Feature
Possible Implementation
null
or underlying valuestd::vist
? (null
forstd::monostate
)if constexpr
branchesDesired Outcome