Boost logo

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.


                  David Abrahams
      C++ Booster ( O__ ==
      Pythonista ( c/ /'_ ==
  resume: (*) \(*) ==
          email: david.abrahams_at_[hidden]

Boost list run by bdawes at, gregod at, cpdaniel at, john at