Boost logo

Boost :

Subject: [boost] [modernization][skelly] Surprising changes
From: Agustín K-ballo Bergé (kaballo86_at_[hidden])
Date: 2013-10-21 20:29:04


I was going through recent Boost.Spirit changes and I was surprised to
see this code:

#if (defined(BOOST_MSVC) && (BOOST_MSVC < 1310)) \
     || (defined(__BORLANDC__) && (__BORLANDC__ <= 0x570)) \
     || (defined(__GNUC__) && (__GNUC__ < 3)) \
     || (defined(__GNUC__) && (__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
# error "Compiler not supported. See note in <boost/spirit/core/config.hpp>"
#else
// Pass... Compiler supported.
#endif

modified into this code:

#if (defined(__BORLANDC__) && (__BORLANDC__ <= 0x570))
# error "Compiler not supported. See note in <boost/spirit/core/config.hpp>"
#else
// Pass... Compiler supported.
#endif

The whole point of the check is to detect unsupported compilers. It
seems the modernization changes do not take into account the context in
which they are done.

To Stephen Kelly: I would like to suggest going over your modernization
commits looking for unwanted changes like this one, and reverting them.
I have already revisited your modifications to Boost.Spirit and found
all changes but the one I mentioned to be valid ones (thank you for those!).

Regards,

-- 
Agustín K-ballo Bergé.-
http://talesofcpp.fusionfenix.com

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk