Re: [C++-sig] [Implementation] Calling wrapped functions, converters, policies
David Abrahams <[email protected]>
| Newsgroups | gmane.comp.lib.boost.langbinding |
|---|---|
| Message-ID | <[email protected]> |
Daniel Wallin <[email protected]> writes: > At 18:53 2003-09-21, David Abrahams wrote: >>Daniel Wallin <[email protected]> writes: >> >> >>Actually I was thinking that the index should be encoded in the type >> >>of the converter. >> > >> > Ok, both approaches work. >> >>I think we may have single converter tuple at this point. If so we'll >>want something like: >> >> converters.convert(argument_package,mpl::int_<1>()); > > I have expressed some concern on this before due to the issue with an > additional layer when returning temporaries from convert(). > (with const& argument types..) > > I would rather see something like: > > get<0>(converters).convert(argument_package); > > or > > get<0>(converters).convert(argument_package, mpl::int_<0>()); I'm sorry, I don't see why one should be more problematic than the other, but I'm willing to go with your first alternative if you like. I think the 2nd one is unneccessary. -- Dave Abrahams Boost Consulting www.boost-consulting.com ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf