[BOOST Interprocess] file lock error on MSVC 10

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? -- View this message in context: http://boost.2283326.n4.nabble.com/BOOST-Interprocess-file-lock-error-on-MSV... Sent from the Boost - Users mailing list archive at Nabble.com.

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
participants (2)
-
Claude
-
Ion Gaztañaga