Boost logo

Ublas :

From: Michael Stevens (mail_at_[hidden])
Date: 2005-08-18 10:41:56


On Wednesday 17 August 2005 23:41, Neal Becker wrote:
> Here is a revised patch. I think I prefer this method to control
> initialization (pass an argument to vector constructor)

In your patch you have

         ~unbounded_array () {
             if (size_) {
- std::_Destroy (begin(), end(), alloc_);
- alloc_.deallocate (data_, size_);
+ const iterator i_end = end();
+ for (iterator i = begin (); i != i_end; ++i) {
+ iterator_destroy (i);
+ }
+ alloc_.deallocate (data_, size_);
             }
         }

Any ideas where _Destroy comes from and what it does. I assume it is not part
of the STL.

-- 
___________________________________
Michael Stevens Systems Engineering
34128 Kassel, Germany
Phone/Fax: +49 561 5218038
Navigation Systems, Estimation  and
                 Bayesian Filtering
    http://bayesclasses.sf.net
___________________________________