[Boost-bugs] [Boost C++ Libraries] #3520: Syntax Error in boost/typeof/typeof.hpp

Subject: [Boost-bugs] [Boost C++ Libraries] #3520: Syntax Error in boost/typeof/typeof.hpp
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-10-12 16:37:30


#3520: Syntax Error in boost/typeof/typeof.hpp
-------------------------------------------------------------------+--------
 Reporter: Jason Masters <jason_masters@…> | Owner: burbelgruff
     Type: Bugs | Status: new
Milestone: Boost 1.41.0 | Component: typeof
  Version: Boost 1.40.0 | Severity: Problem
 Keywords: syntax error typeof.hpp |
-------------------------------------------------------------------+--------
 Line 18 of boost/typeof/typeof.hpp is:

 # ifndef(BOOST_TYPEOF_EMULATION)

 I don't think the brackets around the macro are correct.
 This line is within an ifdef for the __COMO__ macro: the header file has
 similar blocks for other compilers, which do not have the brackets on the
 similar ifndef lines.

 Note that unless you use the __COMO__ compiler your (other) compiler (e.g.
 g++) might not warn about this syntax error, but code within conditionally
 included code must still be syntactically correct, even though it is not
 actually included in the Translation Unit.
 This issue was found with PRQA QAC++, which does report recoverable issues
 in non-included code.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3520>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:01 UTC