$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
Subject: [boost] Potential scoped_ptr improvement
From: David Abrahams (dave_at_[hidden])
Date: 2010-09-29 21:01:07
The incantation
scoped_ptr<Base> x( new Derived );
will succeed and produce undefined behavior upon x's destruction unless
Derived has a trivial or virtual d'tor.
It would be pretty easy to prevent something like that from compiling
when has_virtual_destructor<Base>::value is false. Thoughts?
-- Dave Abrahams BoostPro Computing http://www.boostpro.com