Subject: Re: [Boost-bugs] [Boost C++ Libraries] #7045: Thread library does not automatically compile date_time
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-07-03 16:50:34
#7045: Thread library does not automatically compile date_time
-------------------------------+--------------------------------------------
Reporter: anonymous | Owner: viboes
Type: Bugs | Status: assigned
Milestone: To Be Determined | Component: thread
Version: Boost 1.50.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------+--------------------------------------------
Comment (by viboes):
For the time been, I don't intend to fix these
{{{
C:\Program Files\C++\Boost\boost\thread\win32\shared_mutex.hpp||In
instantiation of 'T boost::shared_mutex::interlocked_compare_exchange(T*,
T, T) [with T = boost::shared_mutex::state_data]':|
C:\Program
Files\C++\Boost\boost\thread\win32\shared_mutex.hpp|124|required from
here|
C:\Program Files\C++\Boost\boost\thread\win32\shared_mutex.hpp|52|warning:
dereferencing type-punned pointer will break strict-aliasing rules
[-Wstrict-aliasing]|
C:\Program Files\C++\Boost\boost\thread\win32\shared_mutex.hpp|52|warning:
dereferencing type-punned pointer will break strict-aliasing rules
[-Wstrict-aliasing]|
C:\Program Files\C++\Boost\boost\thread\win32\shared_mutex.hpp|53|warning:
dereferencing type-punned pointer will break strict-aliasing rules
[-Wstrict-aliasing]|
C:\Program Files\C++\Boost\boost\thread\win32\shared_mutex.hpp|53|warning:
dereferencing type-punned pointer will break strict-aliasing rules
[-Wstrict-aliasing]|
}}}
See #6652.
For these warnings
{{{
C:\Program Files\C++\Boost\boost\thread\win32\condition_variable.hpp||In
member function 'bool
boost::condition_variable::timed_wait(boost::unique_lock<boost::mutex>&,
const system_time&)':|
C:\Program
Files\C++\Boost\boost\thread\win32\condition_variable.hpp|318|warning:
declaration of 'wait_until' shadows a member of 'this' [-Wshadow]|
C:\Program Files\C++\Boost\boost\thread\win32\condition_variable.hpp||In
member function 'bool
boost::condition_variable::timed_wait(boost::unique_lock<boost::mutex>&,
const boost::xtime&)':|
C:\Program
Files\C++\Boost\boost\thread\win32\condition_variable.hpp|323|warning:
declaration of 'wait_until' shadows a member of 'this' [-Wshadow]|
C:\Program Files\C++\Boost\boost\thread\win32\condition_variable.hpp||In
member function 'bool
boost::condition_variable::timed_wait(boost::unique_lock<boost::mutex>&,
const system_time&, predicate_type)':|
C:\Program
Files\C++\Boost\boost\thread\win32\condition_variable.hpp|334|warning:
declaration of 'wait_until' shadows a member of 'this' [-Wshadow]|
C:\Program Files\C++\Boost\boost\thread\win32\condition_variable.hpp||In
member function 'bool
boost::condition_variable::timed_wait(boost::unique_lock<boost::mutex>&,
const boost::xtime&, predicate_type)':|
C:\Program
Files\C++\Boost\boost\thread\win32\condition_variable.hpp|339|warning:
declaration of 'wait_until' shadows a member of 'this' [-Wshadow]|
C:\Program Files\C++\Boost\boost\thread\win32\condition_variable.hpp||In
member function 'bool
boost::condition_variable_any::timed_wait(lock_type&, const
system_time&)':|
C:\Program
Files\C++\Boost\boost\thread\win32\condition_variable.hpp|426|warning:
declaration of 'wait_until' shadows a member of 'this' [-Wshadow]|
C:\Program Files\C++\Boost\boost\thread\win32\condition_variable.hpp||In
member function 'bool
boost::condition_variable_any::timed_wait(lock_type&, const
boost::xtime&)':|
C:\Program
Files\C++\Boost\boost\thread\win32\condition_variable.hpp|432|warning:
declaration of 'wait_until' shadows a member of 'this' [-Wshadow]|
C:\Program Files\C++\Boost\boost\thread\win32\condition_variable.hpp||In
member function 'bool
boost::condition_variable_any::timed_wait(lock_type&, const system_time&,
predicate_type)':|
C:\Program
Files\C++\Boost\boost\thread\win32\condition_variable.hpp|444|warning:
declaration of 'wait_until' shadows a member of 'this' [-Wshadow]|
C:\Program Files\C++\Boost\boost\thread\win32\condition_variable.hpp||In
member function 'bool
boost::condition_variable_any::timed_wait(lock_type&, const boost::xtime&,
predicate_type)':|
C:\Program
Files\C++\Boost\boost\thread\win32\condition_variable.hpp|450|warning:
declaration of 'wait_until' shadows a member of 'this' [-Wshadow]|
}}}
see the attached patch.
For the date_time warnings, please create a ticket for this library.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/7045#comment:5> 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:09 UTC