[cig-commits] r13519 - cs/cigma/trunk/src
luis at geodynamics.org
luis at geodynamics.org
Tue Dec 9 18:13:09 PST 2008
Author: luis
Date: 2008-12-09 18:13:09 -0800 (Tue, 09 Dec 2008)
New Revision: 13519
Modified:
cs/cigma/trunk/src/core_array.cpp
Log:
Fix to copy constructor in cigma::array<T>
Modified: cs/cigma/trunk/src/core_array.cpp
===================================================================
--- cs/cigma/trunk/src/core_array.cpp 2008-12-10 02:13:07 UTC (rev 13518)
+++ cs/cigma/trunk/src/core_array.cpp 2008-12-10 02:13:09 UTC (rev 13519)
@@ -48,6 +48,7 @@
if (size() > 0)
{
_data = new T[size()];
+ std::copy(other._data, other._data + other.size(), _data);
}
}
@@ -107,6 +108,7 @@
// ----------------------------------------------------------------------------
template class cigma::array<int>;
+template class cigma::array<long>;
template class cigma::array<float>;
template class cigma::array<double>;
More information about the CIG-COMMITS
mailing list