Boost logo

Boost :

Subject: Re: [boost] Boost review of the Convert library is ongoing
From: Rob Stewart (robertstewart_at_[hidden])
Date: 2014-05-25 09:44:31


On May 23, 2014 6:28:15 AM EDT, alex <alexhighviz_at_[hidden]> wrote:
>
>template<class TypeIn>
>void operator(const TypeIn& in, optional<TypeIn>& out){...}
>
>template<class TypeIn, class A, class B>
>void operator(const TypeIn& in, optional<pair<A,B> >& out){...}
>
>template<class TypeIn, class TypeOut>
>void operator(const TypeIn& in, optional<TypeOut>& out){...}

I prefer output parameters to be first as it provides the opportunity for defaulted arguments while appearing on a consistent position in the argument list.

___
Rob

(Sent from my portable computation engine)


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk