Boost logo

Boost :

Subject: [boost] [fiber] With MSVC71
From: Chard (boost_at_[hidden])
Date: 2010-04-27 16:32:29


I was hoping to try the latest fiber library from the vault, but it
currently does not compile successfully with MSVC71.

Is it the intention to support this compiler?

There are two compilation failures:

fiber/strategy.hpp, lines 77-8
        template< typename Callable >
        friend void this_fiber::at_fiber_exit( Callable);

I believe this is a VC71 compiler bug; the forward declaration of a template
function that is subsequently given friend access to a class does not seem
to work. I don't know the workaround.

The other can be trivially fixed, and should not cause any issues on other
compilers. Here's the patch:

--- X:/Old/boost/libs/fiber/src/fiber.cpp Fri Apr 09 19:33:08 2010
+++ X:/New/boost/libs/fiber/src/fiber.cpp Fri Apr 23 11:41:58 2010
@@ -90,7 +90,7 @@
  return * this;
 }

-fiber::operator unspecified_bool_type() const
+fiber::operator fiber::unspecified_bool_type() const
 { return info_; }

 bool


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk