Opened 6 years ago

#12523 new Bugs

configuration issue in foreach.hpp for Oracle Developer Studio compiler

Reported by: Aparna.kumta@… Owned by: Eric Niebler
Milestone: To Be Determined Component: foreach
Version: Boost Development Trunk Severity: Problem
Keywords: Cc:

Description

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)

$

Change History (0)

Note: See TracTickets for help on using tickets.