$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: boost (boost_at_[hidden])
Date: 2002-04-17 09:22:27
Salut,
I'm currently puzzled by the matrix::swap function.
Why is there an assertion checking the sizes of the
swapped matrices in matrix.h:
// Swapping
NUMERICS_INLINE
void swap (matrix &m) {
check (this != &m, external_logic ());
check (size1_ == m.size1_, bad_size ());
check (size2_ == m.size2_, bad_size ());
std::swap (size1_, m.size1_);
std::swap (size2_, m.size2_);
data_.swap (m.data_);
}
Best wishes,
Peter