Boost logo

Boost Users :

Subject: Re: [Boost-users] Interesting article on stack-based TMP
From: Larry Evans (cppljevans_at_[hidden])
Date: 2012-10-23 11:50:11


On 10/23/12 09:27, Thorsten Ottosen wrote:
> On 23-10-2012 15:05, Larry Evans wrote:
>> On 10/22/12 07:26, Giovanni Piero Deretta wrote:
>> [snip]
>>> Now, to make this thread on-topic: is anybody working on a C++11
>>> rewrite of Boost.MPL?
>>>
>> Anyone attempting such a rewrite and planning to use the
>> variadic template features might want to start from:
>>
>> http://svn.boost.org/svn/boost/sandbox/variadic_templates/boost/mpl/
>>
>> However, using variadic templates may cause a slowdown in the
>> compile times. IIRC, a variadic template version of proto was
>> developed but was abandoned in favor of using:
>>
>> http://www.boost.org/doc/libs/1_51_0/libs/preprocessor/doc/index.html
>>
>> because of large compile times.
>
> Hm.
>
> This is really sad if variadic templates can't be used for the thing
> they were created for. Is this an inherent problem for large-scale use
> of variadic templates?
>
> -Thorsten

In another post, Eric Niebler reported that
Walter Bright seems to think there's an inherent problem with the way
c++ does templates. I recently asked Walter for more details here:

http://www.digitalmars.com/d/archives/c++/why_are_c_template_instantiations_inherently_slow_6191.html

-Larry


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net