mirror of
https://github.com/boostorg/ublas.git
synced 2026-02-21 15:32:12 +00:00
- fixed mistake in storage.hpp: s/not /! /g
[SVN r37212]
This commit is contained in:
@@ -66,7 +66,7 @@ namespace boost { namespace numeric { namespace ublas {
|
||||
alloc_(a), size_ (size) {
|
||||
if (size_) {
|
||||
data_ = alloc_.allocate (size_);
|
||||
if (not detail::has_trivial_constructor<T>::value) {
|
||||
if (! detail::has_trivial_constructor<T>::value) {
|
||||
for (pointer d = data_; d != data_ + size_; ++d)
|
||||
alloc_.construct(d, value_type());
|
||||
}
|
||||
@@ -98,7 +98,7 @@ namespace boost { namespace numeric { namespace ublas {
|
||||
BOOST_UBLAS_INLINE
|
||||
~unbounded_array () {
|
||||
if (size_) {
|
||||
if (not detail::has_trivial_destructor<T>::value) {
|
||||
if (! detail::has_trivial_destructor<T>::value) {
|
||||
// std::_Destroy (begin(), end(), alloc_);
|
||||
const iterator i_end = end();
|
||||
for (iterator i = begin (); i != i_end; ++i) {
|
||||
@@ -137,7 +137,7 @@ namespace boost { namespace numeric { namespace ublas {
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (not detail::has_trivial_constructor<T>::value) {
|
||||
if (! detail::has_trivial_constructor<T>::value) {
|
||||
for (pointer di = data_; di != data_ + size; ++di)
|
||||
alloc_.construct (di, value_type());
|
||||
}
|
||||
@@ -145,7 +145,7 @@ namespace boost { namespace numeric { namespace ublas {
|
||||
}
|
||||
|
||||
if (size_) {
|
||||
if (not detail::has_trivial_destructor<T>::value) {
|
||||
if (! detail::has_trivial_destructor<T>::value) {
|
||||
for (pointer si = p_data; si != p_data + size_; ++si)
|
||||
alloc_.destroy (si);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user