We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
map_array copy constructor is not functions as expected, leading to crash.
Code to reproduce:
boost::numeric::ublas::map_array<size_t, float> getMapArray() { boost::numeric::ublas::map_array<size_t, float> ma; ma.insert(std::make_pair(1, 1.0f)); return ma; } int main() { boost::numeric::ublas::map_array<size_t, float> ma = getMapArray(); return 0; }
Fix: in line 248 of storage_sparse.hpp,
//std::uninitialized_copy (data_, data_ + capacity_, c.data_); // original implementation std::uninitialized_copy (c.data_, c.data_ + c.size_, data_);
The text was updated successfully, but these errors were encountered:
No branches or pull requests
map_array copy constructor is not functions as expected, leading to crash.
Code to reproduce:
Fix:
in line 248 of storage_sparse.hpp,
The text was updated successfully, but these errors were encountered: