[Boost-bugs] [Boost C++ Libraries] #12523: configuration issue in foreach.hpp for Oracle Developer Studio compiler

Subject: [Boost-bugs] [Boost C++ Libraries] #12523: configuration issue in foreach.hpp for Oracle Developer Studio compiler
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-10-13 17:26:52


#12523: configuration issue in foreach.hpp for Oracle Developer Studio compiler
-------------------------------------+--------------------------
 Reporter: Aparna.kumta@… | Owner: eric_niebler
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: foreach
  Version: Boost Development Trunk | Severity: Problem
 Keywords: |
-------------------------------------+--------------------------
 Compiling rvalue_const.cpp with Oracle Developer Studio 12.5, we see the
 following error:
  CC -compat=5 -library=stlport4 -xO4 -mt -erroff=%none -m32 -KPIC
 -DBOOST_ALL_NO_LIB=1 -DNDEBUG -I".." -c -o ./rvalue_const.o
 ../libs/foreach/test/rvalue_const.cpp
 "../libs/foreach/test/rvalue_const.cpp", line 18: Error: #error Expected
 failure : const rvalues disallowed.

 Solution: \\
 The following change to boost/foreach.hpp resolves the issue \\
 $ diff foreach.hpp foreach.hpp_orig \\
 59a60 \\
> || BOOST_WORKAROUND(__SUNPRO_CC, >= 0x5100)
 $

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