Subject: Re: [Boost-bugs] [Boost C++ Libraries] #8152: operator_bool write access violation error in MSVC builds
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-03-01 01:30:33
#8152: operator_bool write access violation error in MSVC builds
------------------------------------+---------------------------------------
Reporter: rossmpublic@⦠| Owner: pdimov
Type: Bugs | Status: new
Milestone: To Be Determined | Component: smart_ptr
Version: Boost 1.53.0 | Severity: Problem
Resolution: | Keywords:
------------------------------------+---------------------------------------
Comment (by Ross MacGregor <rossmpublic.gmail.com>):
This is not a bug but an improper use of the pointer_to_members pragma.
Info from the MS ticket:
"Your code violates one definition rule in C++ standard. The pragma is
used in main.cpp but not in TestClass.cpp. This leads to two inconsistent
definitions of the same 'IntPointer'. The code can run correctly if you
move the pragma after #include directive because this eliminates the one
definition rule violation."
This issue may be closed.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/8152#comment:2> 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:12 UTC