> std::shared_ptr<TrustSession> Shell::start_trust_session_for(std::string&
> error,
> std::shared_ptr<Session> const& session,
> shell::TrustSessionCreationParameters const& params) = 0;
>
> This "error" parameter is not an idiomatic way to handle failure. Simply
> throwing an exception derived from std::exception that returns the error in
> what() will result in invoke<>() setting the error.
Thanks, didn't know that.
Removed error parameter from interface.
> std::shared_ ptr<TrustSessio n> Shell:: start_trust_ session_ for(std: :string& ptr<Session> const& session, TrustSessionCre ationParameters const& params) = 0;
> error,
> std::shared_
> shell::
>
> This "error" parameter is not an idiomatic way to handle failure. Simply
> throwing an exception derived from std::exception that returns the error in
> what() will result in invoke<>() setting the error.
Thanks, didn't know that.
Removed error parameter from interface.