Re: [MacPorts] #32558: mkvtoolnix: error: ‘boost::BOOST_FOREACH’ has not been declared

MacPorts noreply at macports.org
Sat Dec 31 05:06:24 PST 2011


#32558: mkvtoolnix: error: ‘boost::BOOST_FOREACH’ has not been declared
----------------------------------+-----------------------------------------
  Reporter:  palmer100@…          |       Owner:  kona8lend@…        
      Type:  defect               |      Status:  reopened           
  Priority:  Normal               |   Milestone:                     
 Component:  ports                |     Version:  2.0.3              
Resolution:                       |    Keywords:                     
      Port:  mkvtoolnix           |  
----------------------------------+-----------------------------------------

Comment(by akim.demaille@…):

 Replying to [comment:16 adfernandes@…]:
 > The main problem is that the patches that I committed are Already part
 of boost, so they will have to be dealt with at some point.
 Hi!

 Thanks for your answer.  My point is that with "pure" Boost releases, it's
 very easy to deal with the release: just depend on BOOST_VERSION to select
 whether you first need to include <foreach.hpp> or to define foreach.  My
 code is already ready for 1.49.  But in this case, even if BOOST_VERSION
 tells me this is 1.48, it is actually not.  So now I have a very weak
 workaround where I depend on both __APPLE__ and BOOST_VERSION to decide
 which order to use.  The very fragile heuristics is based on the idea that
 on OS X, this Boost is probably the MacPorts' one.

 What would really be extremely helpful is that MacPorts' Boost enrich
 <boost/version.hpp> with some MACPORTS_BOOST_VERSION on which to safely
 depend.

-- 
Ticket URL: <https://trac.macports.org/ticket/32558#comment:17>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list