I discovered my problem when I used STLFilt (http://www.bdsoft.com/tools/stlfilt.html) to unscramble the error messages. I highly recommend this resource for effectively diagnosing STL problems. And by the way, my problem had nothing to do with the Boost library!
Rob
From: TONGARI mailto:tongari95@gmail.com>
Reply-To: "boost-users@lists.boost.orgmailto:boost-users@lists.boost.org" mailto:boost-users@lists.boost.org>
Date: Tue, 27 Sep 2011 10:01:47 -0700
To: "boost-users@lists.boost.orgmailto:boost-users@lists.boost.org" mailto:boost-users@lists.boost.org>
Subject: Re: [Boost-users] [boost-newbie] Compiler Error on OS X 10.7.1 (Lion)
2011/9/28 Rob Jones mailto:robjones@lightspeedsystems.com>
Trying to use BOOST_FOREACH() in some code and I'm getting the following errors:
/Developer/SDKs/MacOSX10.7.sdk/usr/include/c++/4.2.1/bits/ios_base.h:779: error: 'std::ios_base::ios_base(const std::ios_base&)' is private
/Developer/SDKs/MacOSX10.7.sdk/usr/include/c++/4.2.1/streambuf:802: error: 'std::basic_streambuf<_CharT, _Traits>& std::basic_streambuf<_CharT, _Traits>::operator=(const std::basic_streambuf<_CharT, _Traits>&) [with _CharT = char, _Traits = std::char_traits<char>]' is private
The compiler is: GCC 4.2
O/S is: OS X 1.7.1
Boost 1.47.0 was installed using MacPorts.
Any help / pointers here would be useful. Thanks in advance.
Can you provide the related code?