Re: [Boost-bugs] [Boost C++ Libraries] #12554: boost/core/typeinfo.hpp creates unwanted strings in release binary

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #12554: boost/core/typeinfo.hpp creates unwanted strings in release binary
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-10-31 17:52:06


#12554: boost/core/typeinfo.hpp creates unwanted strings in release binary
------------------------------------+---------------------
  Reporter: Lev Sch <Zorechfan@…> | Owner: pdimov
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: core
   Version: Boost 1.62.0 | Severity: Problem
Resolution: | Keywords:
------------------------------------+---------------------

Comment (by Lev Sch <Zorechfan@…>):

 If only this line is used
   printf("%s\n",typeid(!MyFavoriteClass)==typeid(!MyFavoriteClass) ?
 "true" : "false");
 and RTTI is disabled then binary file will contain this string:
   .?AVMyFavoriteClass@?1??main@@YAHXZ@

 I do not want these lines and I have no influence to compiler. I disabled
 RTTI for my project and does not use "typeid" operator.
 Another libraries should not use typeid also, to prevent these strings.
 So, I disabled usage of typeid by Boost by defining BOOST_NO_TYPEID.

 I use own implementation of typeid that does not generate these strings.

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