[Boost-bugs] [Boost C++ Libraries] #1470: Boost.Thread: Compilation errors with non-__cdecl calling convention

Subject: [Boost-bugs] [Boost C++ Libraries] #1470: Boost.Thread: Compilation errors with non-__cdecl calling convention
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2007-11-22 17:22:28


#1470: Boost.Thread: Compilation errors with non-__cdecl calling convention
-------------------------------------+--------------------------------------
 Reporter: Francois Barel | Owner: anthonyw
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: thread
  Version: Boost Development Trunk | Severity: Problem
 Keywords: thread __cdecl |
-------------------------------------+--------------------------------------
 Hi,

 On Win32, Boost.Thread currently (r41287) doesn't compile when the
 compiler's default calling convention is not {{{__cdecl}}} (e.g. with
 option /Gz under MSVC, which defaults functions to {{{__stdcall}}} if no
 other calling convention is specified).

 This is because some function pointers are (correctly) explicitely
 declared {{{__cdecl}}}, but are then assigned with the addresses of
 functions with no explicit calling convention specified -- which is
 incorrect. Those functions should be explicitely {{{__cdecl}}} as well.

 I suggest applying the attached patch (in {{{trunk/}}}) to fix that
 behavior.

 Cheers,
 Francois

--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1470>
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:49:57 UTC