
on Fri Aug 10 2007, Tobias Schwinger <tschwinger-AT-isonews2.com> wrote:
Hi Joaquín,
Joaquín Mª López Muñoz wrote:
Tobias and Ion,
I'm writing a lib for eventual submission to Boost that incidentally uses Boost.Parameter to achieve a flexible template argument specification like the one you're discussing. The thing is, you can have (2) and (3) at a time, so that both
Interesting. What's the library about in the first place?
Quick summary of the discussion context: Boost.Parameter was my first suggestion. Ion was concerned that too much template instantiations would have a negative impact on the size of the executable image (due to poor code factorization with some compilers when a template gets instantiated with many distinct types, that actually mean the same), so we were discussing minimalist, custom-made, named template parameters.
The easy way to deal with this is to dispatch all implementation to a single class template with an ordinary parameter interface once you've used Boost.Parameter to sort out all the named/deduced parameters. -- Dave Abrahams Boost Consulting http://www.boost-consulting.com The Astoria Seminar ==> http://www.astoriaseminar.com