Re: [Boost-bugs] [Boost C++ Libraries] #4003: Error in destroy.hpp when methods "T()" and "operator~()" are defined.

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #4003: Error in destroy.hpp when methods "T()" and "operator~()" are defined.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-03-15 21:57:39


#4003: Error in destroy.hpp when methods "T()" and "operator~()" are defined.
------------------------------------------------------+---------------------
 Reporter: Christopher Bruns <cmbruns@…> | Owner: dave
     Type: Bugs | Status: new
Milestone: Boost 1.43.0 | Component: Python
  Version: Boost 1.42.0 | Severity: Problem
 Keywords: |
------------------------------------------------------+---------------------

Comment(by steven_watanabe):

 It seems to work if I change the code to

 {{{
 p->~T()
 }}}

 However, this is slightly different, since it will invoke a virtual
 destructor, where the original will not. The only other alternative I can
 think of it to mangle the name so that there is no chance of anyone using
 the same name. (i.e. template<class
 T_boost_python_unique_id_82623817364646282>)

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