Boost logo

Boost Users :

From: David Abrahams (dave_at_[hidden])
Date: 2006-06-05 19:03:22


"Robert Ramey" <ramey_at_[hidden]> writes:

> How does the size of the executable vary. It shouldn't - but if
> it does that would indicate extra code being instantiated.

Of course it should vary if any classes are exported. The whole point
of BOOST_CLASS_EXPORT is to instantiate a piece of code for each
element in the cross-product of exported classes and visible
archives. If you make more archives visible in the translation unit,
more code will necessarily be instantiated (and run at startup).

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com

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