Opened 13 years ago

Closed 13 years ago

#3211 closed Bugs (fixed)

exception.hpp fails to compile with CodeWarrior 9.6 Mac

Reported by: Wolfgang Textor <wtextor@…> Owned by: Emil Dotchevski
Milestone: Boost 1.40.0 Component: exception
Version: Boost 1.37.0 Severity: Problem
Keywords: Cc:

Description

Since boost 1.37 I am getting compiler errors (unimplemented C++ feature) if CodeWarrior tries to compile anything that includes /boost/exception/exception.hpp. The problem lies in the template friend member functions. If I comment out the lines 208, 217 and 226 (the three friend declarations for the templated member functions) everything is fine.

I assume that this won't be the ideal solution, as (for me) only CodeWarrior is affected (GCC 4 and MSVC 8 are working), but I did not find an appropriate sounding boost macro to use as a wrapper.

Change History (2)

comment:1 by Steven Watanabe, 13 years ago

The correct solution would be to remove the friend declarations and make the members that need to be accessed public if BOOST_NO_MEMBER_TEMPLATE_FRIENDS is defined.

in reply to:  1 comment:2 by Emil Dotchevski, 13 years ago

Resolution: fixed
Status: newclosed

Please someone try it out, see trunk revision 58088.

Note: See TracTickets for help on using tickets.