Re: [Boost-bugs] [Boost C++ Libraries] #7061: xcode 4.5 does not compile code which uses boost::statechart

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #7061: xcode 4.5 does not compile code which uses boost::statechart
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-07-09 08:03:44


#7061: xcode 4.5 does not compile code which uses boost::statechart
--------------------------------------+-------------------------------------
  Reporter: bychkov.anton@… | Owner: andreas_huber69
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: statechart
   Version: Boost 1.50.0 | Severity: Showstopper
Resolution: | Keywords:
--------------------------------------+-------------------------------------

Comment (by andreas_huber69):

 In the state_base type, I'm forward-declaring types that ultimately derive
 from state_base. This is a circular dependency, so the declarations for
 these types cannot be simply #included. In state_base, I'm also declaring
 a std::list typedef, which is then used as a by-reference parameter of a
 pure-virtual function. It seems that XCode for some reason tries to call
 functions of the element type at this point. Note that state_base does not
 call any std::list functions so I'm not really sure why XCodes std::list
 implementation would try to call any functions on the element type.

 To cut a long story short, I don't think there's an easy workaround for
 this. Moreover, the response from the "apple guys" seems to suggest that
 this problem is caused by a *defect* in the XCode std library.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/7061#comment:1>
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:10 UTC