|
Boost Users : |
Subject: Re: [Boost-users] tons of errors because boost::thread::thread() in thread/detail/thread.hpp is private
From: tiredashell (tiredashell_at_[hidden])
Date: 2009-11-08 00:58:13
It turns out that a relatively obscure mistake on my part caused the slew of
errors: I made the boost::thread object's name the exact same as the
function it was to launch. It turns out that on Windows, this was not a
problem, but on OSX it caused a bunch of unhelpful errors, including the one
I mentioned.
On Sat, Nov 7, 2009 at 7:36 PM, tiredashell <tiredashell_at_[hidden]> wrote:
> I am successfully using Boost.Thread on Windows without a hitch, but when
> porting my program to OSX I get the following compile error, followed by an
> enormous chain of errors that probably are a derivative of it:
>
> ./boost/thread/detail/thread.hpp:108: error:
> boost::thread::thread(boost::thread&) is private
>
> When checking the class that it mentioned, it appears that it is in fact
> declared as private for some reason. Is there a reason I'm only receiving
> this error on OSX, and how can it be fixed?
>
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