
10 Jun
2009
10 Jun
'09
8:39 a.m.
I agree that it would need to be automated. But the script itself should be very trivial, I'd be willing to try it myself. And perhaps the best approach is what I mentioned in a previous post, to force the programmer to explicitly define BOOST_USE_PRAGMA_ONCE before including a boost header file. This would solve the problem of having to modify every header when new compilers were released. And since by default it would be undefined, an out-of-the-box boost installation would work exactly as it does now. I'll work on this a bit later today perhaps, and try to post some benchmarks for for compiling boost itself, and for compiling a commercial product which uses boost.
Thanks Zach, that would be really useful! John.