[Boost-bugs] [Boost C++ Libraries] #11694: Boost.icl tests incompatibility with Solaris

Subject: [Boost-bugs] [Boost C++ Libraries] #11694: Boost.icl tests incompatibility with Solaris
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-09-29 17:02:37


#11694: Boost.icl tests incompatibility with Solaris
-------------------------------------------+---------------------
 Reporter: Aparna Kumta <aparna.kumta@…> | Owner: jofaber
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: ICL
  Version: Boost Development Trunk | Severity: Problem
 Keywords: |
-------------------------------------------+---------------------
 About 20 boost.icl tests fail on Solaris with the following errors:
 Error: Expected "class" or "typename" before "0x00000001"
 Error: "," expected instead of "0x00000001".

   This happens because some of the headers use _U as a name of template
 parameter:
   boost/boost_1_58_0/libs/icl/test/test_icl_quantifier_shared.hpp:
      ICL_IntervalMap_TEMPLATE(_T,_U,Traits,Trt) IntervalMap

  and _U is defined in Solaris /usr/include/iso/ctype_iso.h

  #define _U 0x00000001 /* Upper case */

  (also they use _L, _N, _S, _P, _C , _B, _X :)

 Names starting with two underscores or an underscore and an upper-case
 letter are reserved to the system. Declaring such names in an application
 has undefined results.

 The other headers which have similar issues are:
 libs/icl/test/test_icl_map.hpp
 libs/icl/test/test_functions.hpp
 libs/icl/test/test_interval_map_shared.hpp
 libs/icl/test/test_interval_quantifier_shared.hpp

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/11694>
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:19 UTC