|
Boost : |
From: David Abrahams (abrahams_at_[hidden])
Date: 2000-08-27 09:20:24
----- Original Message -----
From: "Howard Hinnant" <hinnant_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Sunday, August 27, 2000 10:00 AM
Subject: Re: [boost] Trivial ctors/dtors
> David Abrahams wrote on 8/26/2000 8:06 PM
> >I wonder
> >whether one can technically count on std::pair having a trivial dtor?
>
> In general, no. Consider std::pair<std::string, int>.
Sorry, I meant std::pair<int, int>. What I meant to wonder about was whether
the standard gives implementors the leeway to write:
~pair {} // non-trivial dtor
in the declaration of pair<>.
That is non-trivial, strictly speaking, right?
-Dave
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk