Boost logo

Boost :

From: Ion Gaztañaga (igaztanaga_at_[hidden])
Date: 2007-06-20 11:12:36


Hi,

joel.vennin_at_[hidden] wrote:
> Hi !
>
>
>
> I use the Interprocess library version 2006-10-13.

I recommend you downloading the latest code from CVS so that you can get
bug-fixes.

> [example]
> So when I debug this code: the debugger enter to the file_mapping
> constructor, next evaluate the following line:
>
>
>
> //Check accesses
>
> if (mode != read_write || mode != read_only){
>
> error_info err = other_error;
>
> throw interprocess_exception(err);
>
> }
> And it throws the error. So I really don't understand why it does it.

Because the line is not correct. It should be:

mode != read_write && mode != read_only

This is already fixed in the CVS code,

Ion


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