Re: [Boost-bugs] [Boost C++ Libraries] #11699: Forward declarations of std templates causes stack corruption under Visual Studio 2015

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #11699: Forward declarations of std templates causes stack corruption under Visual Studio 2015
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-09-30 20:19:17


#11699: Forward declarations of std templates causes stack corruption under Visual
Studio 2015
-------------------------------------------------+-------------------------
  Reporter: Attila Mitrócsák | Owner: igaztanaga
  <attila.mitrocsak@…> | Status: new
      Type: Bugs | Component:
 Milestone: To Be Determined | interprocess
   Version: Boost 1.59.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------------------------+-------------------------

Comment (by igaztanaga):

 Thanks for the report. It seems that it is a compiler bug, and standard
 libraries before Visual 2013 used some dummy virtual functions in
 basic_istream and basic_ostream to fix it. Starting with Visual 2013
 <istream> and <ostream> contain a pragma to fix the bug with the comment:

  #pragma vtordisp(push, 2) // compiler bug workaround

 The fix is to use the same pragma when forward declaring the basic_istream
 and basic_ostream.

 Thanks a lot for the detailed report and MSVC solutions, they helped a
 lot.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/11699#comment:1>
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:19 UTC