Boost logo

Boost :

From: Michael Glassford (glassfordm_at_[hidden])
Date: 2004-07-13 10:13:21


Joel de Guzman wrote:

> Joel de Guzman wrote:
>
> g++3.2 on MinGW has some trouble compiling
> boost/thread/detail/lock.hpp:
>
> .../../../boost/thread/detail/lock.hpp:30: semicolon missing
> after enum declaration
>
> Easy fix:
>
> enum lock_state
> {
> unlocked=0,
> locked=1
> };
>
> and
>
> enum blocking_mode
> {
> non_blocking=0,
> blocking=1
> };

Actually, I removed them. According to the recent very long discussions
of the locking classes and other things, they won't be used.

> It's been a while since I've seen the old constructs
> such as:
>
> typedef enum
> {
> unlocked=0,
> locked=1
> } lock_state;

Sorry, it's an old habit that I slip into when I'm not thinking about
it, caused by a broken compiler I used long ago.

I changed it in all the other places I could find as well.

Mike


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