[Bug c++/49450] not possible to call explicit destructor of std::string
daniel.kruegler at googlemail dot com
gcc-bugzilla@gcc.gnu.org
Fri Jun 17 13:33:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49450
Daniel Krügler <daniel.kruegler at googlemail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |daniel.kruegler at
| |googlemail dot com
--- Comment #2 from Daniel Krügler <daniel.kruegler at googlemail dot com> 2011-06-17 13:32:44 UTC ---
(In reply to comment #0)
> We want to use C++0x unions with a std::string as member (see for example
> http://www2.research.att.com/~bs/C++0xFAQ.html#unions). At the moment we want
> to call the ~string we get an error.
Your program is not conforming according to the standard. You need to write
s.std::string::~string();
instead.
More information about the Gcc-bugs
mailing list