|
Boost : |
From: David Abrahams (david.abrahams_at_[hidden])
Date: 2002-02-21 14:31:21
Assertion failed: boost::has_trivial_destructor<int&>::value, file foo.cpp,
line 16
Is this a good idea? Shouldn't we return true for all references? The reason
to ask whether a type has a trivial destructor (it seems to me) is to decide
when you can skip calling it, or more importantly, when you can avoid
destroying an array since that's less likely to optimize away. At the very
least, this behavior should be documented.
-Dave
+---------------------------------------------------------------+
David Abrahams
C++ Booster (http://www.boost.org) O__ ==
Pythonista (http://www.python.org) c/ /'_ ==
resume: http://users.rcn.com/abrahams/resume.html (*) \(*) ==
email: david.abrahams_at_[hidden]
+---------------------------------------------------------------+
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk