22 Feb
2005
22 Feb
'05
6:50 a.m.
In addition to improving the docs, I'd say that it's even better to include the boost/none.hpp header with optional.hpp so it could be easily found and reached. As I understood, the reason why this is not done now, is because some compilers (such as Borland's) have troubles with initialized data and pre-compiled headers. If this is truely the case, then I think it's easily solved. Include as follows:
#ifndef BOOST_OPTIONAL_DISCLUDE_NONE #include
#endif
And I forgot BOOST_OPTIONAL_INCLUDE_NONE to force inclusion for Borland users who don't use precompiled headers, or in general users who think they know what they're doing.