Subject: [Boost-bugs] [Boost C++ Libraries] #10325: Win32: including file_lock.hpp results in compilation error
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-08-08 07:02:19
#10325: Win32: including file_lock.hpp results in compilation error
-------------------------------------+--------------------------
Reporter: anonymous | Owner: igaztanaga
Type: Bugs | Status: new
Milestone: Boost 1.57.0 | Component: interprocess
Version: Boost 1.56.0 | Severity: Problem
Keywords: interprocess, file_lock |
-------------------------------------+--------------------------
Today I switched from Boost 1.55.0 to 1.56.0 and now get the following
error just for including file_lock.hpp:
'''error: invalid conversion from 'boost::interprocess::winapi::farproc_t
{aka int (__attribute__((__stdcall__)) *)()}' to 'void*' [-fpermissive]'''
{{{
In file included from
d:\mingw\mingw32\i686-w64-mingw32\include\boost\interprocess\errors.hpp:37:0,
from
d:\mingw\mingw32\i686-w64-mingw32\include\boost\interprocess\exceptions.hpp:20,
from
d:\mingw\mingw32\i686-w64-mingw32\include\boost\interprocess\sync\file_lock.hpp:20,
from src\init.cpp:38:
d:\mingw\mingw32\i686-w64-mingw32\include\boost\interprocess\detail\win32_api.hpp:
In instantiation of 'static void*
boost::interprocess::winapi::function_address_holder<Dummy>::get(unsigned
int) [with int Dummy = 0]':
d:\mingw\mingw32\i686-w64-mingw32\include\boost\interprocess\detail\win32_api.hpp:1614:20:
required from here
d:\mingw\mingw32\i686-w64-mingw32\include\boost\interprocess\detail\win32_api.hpp:1541:31:
error: invalid conversion from 'boost::interprocess::winapi::farproc_t
{aka int (__attribute__((__stdcall__)) *)()}' to 'void*' [-fpermissive]
return FunctionAddresses[id];
^
}}}
Used compiler: gcc version 4.8.1 (rev5, Built by MinGW-W64 project)
OS: Win8.1 x64
IDE: Qt Creator 3.1.2 (Qt 5.3.1)
I verified that the project compiles fine, if the file_lock stuff is
commented out. I'm going to watch this thread, so I don't supply my email
address.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/10325> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:16 UTC