Re: Conversion policies
David Abrahams <[email protected]>
| Newsgroups | gmane.comp.lib.boost.langbinding |
|---|---|
| Message-ID | <[email protected]> |
Daniel Wallin <[email protected]> writes: > I've checked in a basic framework for conversion policies, like the > one we have in luabind. > > boost/langbinding/policy.hpp Q1: Why use a handbuilt cons-list in lieu of mpl::list? Q2: Conversion policies may carry data in them; it seems to me that you need a runtime identification mechanism. How about CRTP? What is the purpose of the "N" argument in find_conversion_policy anyway? I guess some comments would be illustrative. P.S. Metafunctions should take only type parameters, for a variety of reasons, and converter_generator_tag would be more interoperable if its nested type were called "::type" instead of "::index" -- Dave Abrahams Boost Consulting www.boost-consulting.com ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01