This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Weird (unintuitive?) behavior of std::tuple


> Isn't it just that default copy constructors are called making copies of
> objects so destructors are called twice: once for "original" object and
> once for it's copy?

Indeed. But this is the right reply for a message properly sent to gcc-help ;)

Paolo


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]