2011/9/28 Rob Jones <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?