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 13:12:56


#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 pdimov):

 The reason is that `BOOST_TYPEID` emulates the built-in `typeid` operator,
 which returns a reference to `typeinfo`, which is a non-template class. So
 `typeinfo::name()` has to be present. If `BOOST_TYPEID` could return
 `typeinfo<T>` instead, `name()` would not be instantiated unless used. But
 it can't.

 Why are you defining `BOOST_NO_TYPEID` by hand under MSVC though? It's not
 required.

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