
25 May
2014
25 May
'14
1:44 p.m.
On May 23, 2014 6:28:15 AM EDT, alex <alexhighviz@hotmail.com> 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)