Boost logo

Boost Users :

Subject: Re: [Boost-users] [boost-newbie] Compiler Error on OS X 10.7.1 (Lion)
From: Rob Jones (robjones_at_[hidden])
Date: 2011-09-28 11:33:53

I discovered my problem when I used STLFilt ( 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!


From: TONGARI <tongari95_at_[hidden]<mailto:tongari95_at_[hidden]>>
Reply-To: "boost-users_at_[hidden]<mailto:boost-users_at_[hidden]>" <boost-users_at_[hidden]<mailto:boost-users_at_[hidden]>>
Date: Tue, 27 Sep 2011 10:01:47 -0700
To: "boost-users_at_[hidden]<mailto:boost-users_at_[hidden]>" <boost-users_at_[hidden]<mailto:boost-users_at_[hidden]>>
Subject: Re: [Boost-users] [boost-newbie] Compiler Error on OS X 10.7.1 (Lion)

2011/9/28 Rob Jones <robjones_at_[hidden]<mailto:robjones_at_[hidden]>>
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?

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at