Boost logo

Boost Users :

Subject: [Boost-users] boost::mpl
From: Peter Foelsche (foelsche_at_[hidden])
Date: 2011-11-12 20:28:58


Again -- my thanks to the developers of boost::mpl -- something I'm really
use and appreciate a lot!

Some requests:
1)
I talked already in the past about the value_init stuff used in for_each.
I'm not certain which kind of object needs it's memory initialized to zero
to work.
Anyway -- even in case of pod types the contents of the value does not
matter,

AS ONLY THE TYPE IS NEEDED

to select one or the other template routine.

2)
The routine mpl::for_each must be inlined.
I got an object file of a size which I've never seen before!!!!
And memory usage by the compiler of up to 12GB!
And after some examination it turned out, that some routines called by
for_each are not inlined.
And I did add again (like I did already some time ago and reported here)
some
__forceinline
(the equivalent for g++ is some attribute)
to some of the routines in boost/mpl/for_each.hpp
Now everything is fine -- the compiler finishes after an appropriate time
and things compile again on 32bit.

Peter Foelsche


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