Boost logo

Boost :

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() { traits::destroy(p_); }

Best regards,
Ruslan Zasukhin
e-mail: ruslan_at_[hidden]
web   :
To subscribe to the Valentina mail list
send a letter to valentina-on_at_[hidden]

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