Boost logo

Boost Users :

Subject: Re: [Boost-users] [boost-newbie] Compiler Error on OS X 10.7.1 (Lion)
From: TONGARI (tongari95_at_[hidden])
Date: 2011-09-27 13:01:47


2011/9/28 Rob Jones <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 hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net