Boost logo

Boost Users :

Subject: [Boost-users] [boost-newbie] Compiler Error on OS X 10.7.1 (Lion)
From: Rob Jones (robjones_at_[hidden])
Date: 2011-09-27 12:14:04

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.


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