> +class TrustSessionListener > +{ > +public: > + virtual void starting(std::shared_ptr<TrustSession> const& trust_session) > = 0; > + virtual void stopping(std::shared_ptr<TrustSession> const& trust_session) > = 0; > + > + virtual void trusted_session_beginning(TrustSession& trust_session, > std::shared_ptr<Session> const& session) = 0; > + virtual void trusted_session_ending(TrustSession& trust_session, > std::shared_ptr<Session> const& session) = 0; > > The listener shouldn't be given any ownership of the referenced objects. So > the prototypes should be: > > virtual void starting(TrustSession const& trust_session) = 0; > virtual void stopping(TrustSession const& trust_session) = 0; > > virtual void trusted_session_beginning(TrustSession& trust_session, > Session const& session) = 0; > virtual void trusted_session_ending(TrustSession& trust_session, Session > const& session) = 0;
changed.
« Back to merge proposal
> +class TrustSessionLis tener std::shared_ ptr<TrustSessio n> const& trust_session) std::shared_ ptr<TrustSessio n> const& trust_session) session_ beginning( TrustSession& trust_session, ptr<Session> const& session) = 0; session_ ending( TrustSession& trust_session, ptr<Session> const& session) = 0; TrustSession const& trust_session) = 0; TrustSession const& trust_session) = 0; session_ beginning( TrustSession& trust_session, session_ ending( TrustSession& trust_session, Session
> +{
> +public:
> + virtual void starting(
> = 0;
> + virtual void stopping(
> = 0;
> +
> + virtual void trusted_
> std::shared_
> + virtual void trusted_
> std::shared_
>
> The listener shouldn't be given any ownership of the referenced objects. So
> the prototypes should be:
>
> virtual void starting(
> virtual void stopping(
>
> virtual void trusted_
> Session const& session) = 0;
> virtual void trusted_
> const& session) = 0;
changed.