$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Ruslan Zasukhin (sunshine_at_[hidden])
Date: 2002-02-08 06:08:50
Hi Boosters,
Another not cool thing I have see in BOOST,
And again better implementation exists in CodeWarrior.
In BOOST you have 2 version of scope_ptr<>
One for single object, and one for array.
CodeWarrior use small traits
    class Single_
    {
        destroy { delete p; }
    }
    class Array_
    {
        destroy { delete [] p; }
    }
And in scope_ptr they add one more parameter to template:
    template <class T, class traits = Single_ >
    scope_ptr
    {
            ~scope_ptr() { traits::destroy(p_); }
    }    
-- Best regards, Ruslan Zasukhin ------------------------- Paradigma. e-mail: ruslan_at_[hidden] web : http://www.paradigmasoft.com To subscribe to the Valentina mail list send a letter to valentina-on_at_[hidden]