Boost logo

Boost Users :

From: Olle Håkansson (ollhak_at_[hidden])
Date: 2007-07-09 03:35:42


Heya,

I'm working on a product for a very limited platform and I'd prefer to
have as few "extra" C++-features enabled as possible. Specifically, I'd
prefer not to have exceptions enabled, because I have no use for them
right now. It's nice that the boost library comes with the
BOOST_NO_EXCEPTIONS-option, but when the compiler (Metroworks
CodeWarrior) reaches any try/catch-blocks that for some reason still
linger in the code even with the option enabled, I get an error. Right
now I'm only having trouble with the boost::function library, but after
a quick search I know that there are quite a few try/catch-blocks in the
source...

So, is there any way (preferably besides manually editing the headers)
to bypass the blocks? I've looked at hacks such as using the
preprocessor to redefine the try and catch keywords, but I can't get it
through catch (...)-statements. Shouldn't BOOST_NO_EXCEPTIONS remove
_all_ the code that has to do with exception handling?

/Olle


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