Boost logo

Boost Users :

Subject: Re: [Boost-users] [BOOST Interprocess] file lock error on MSVC 10
From: Ion Gaztañaga (igaztanaga_at_[hidden])
Date: 2011-03-24 12:50:30


El 24/03/2011 8:14, Claude escribió:
> Hi,
> I'm trying to compile simple program with MSVC++ 10 that use
> <boost/interprocess/sync/file_lock.hpp> include file (boost version
> 1.44)
> But I have a compile error in this file at row 68:
>
>
> C:\Users\Claudio\Desktop\boost_1_44_0\boost/interprocess/sync/file_lock.hpp(68):
> vedere il riferimento all'istanza del modello di funzione
> 'boost::interprocess::file_lock
> &&boost::interprocess::move<boost::interprocess::file_lock&>(T)'
> in corso di compilazione
> with
> [
> T=boost::interprocess::file_lock&
> ]
> "Impossibile associare un elemento lvalue a un riferimento di rvalue"
> ("Can not associate a lvalue to a rvalue reference")
>
> This program compiles without error on GCC 4.5 (Linux Ubuntu)
>
> Why?

This should be solved in later Boost versions.

Best,

Ion


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