Opened 6 years ago
Last modified 5 years ago
#12982 new Bugs
Missing <serialization/array_wrapper.hpp> header in uBLAS files?
Reported by: | Owned by: | Gunter | |
---|---|---|---|
Milestone: | To Be Determined | Component: | uBLAS |
Version: | Boost Development Trunk | Severity: | Problem |
Keywords: | Cc: | roel@… |
Description
When building code using the boost library I received two error messages saying
/usr/local/include/boost/numeric/ublas/storage.hpp:301:33: error: no member named 'make_array' in namespace 'boost::serialization'
and
/usr/local/include/boost/numeric/ublas/matrix.hpp:5979:33: error: no member named 'make_array' in namespace 'boost::serialization'
So I decided to add the line
#include <boost/serialization/array_wrapper.hpp>
in both the files boost/numeric/ublas/storage.hpp and boost/numeric/ublas/matrix.hpp
Now my code is building properly! Does this mean a line is missing in the source code of ublas? I would be really surprised.
Change History (7)
comment:1 by , 6 years ago
Version: | Boost 1.64.0 → Boost Development Trunk |
---|
comment:2 by , 5 years ago
follow-up: 4 comment:3 by , 5 years ago
Cc: | added |
---|
follow-up: 5 comment:4 by , 5 years ago
Replying to roel@…: Hi Roel, what do you mean by "ajouté" ? Did you change something ? Thanks
comment:5 by , 5 years ago
Replying to anonymous:
Replying to roel@…: Hi Roel, what do you mean by "ajouté" ? Did you change something ? Thanks
I just added myself to the CC list because we've had this issue (https://github.com/emweb/wt/pull/114), and I want to be notified when something happens with it.
comment:6 by , 5 years ago
I also came across this missing #include. I fixed it in my code bu replacing:
#include <boost/numeric/ublas/matrix.hpp>
with:
#include <boost/serialization/array_wrapper.hpp> #include <boost/numeric/ublas/matrix.hpp>
comment:7 by , 5 years ago
I found this issue too. It appears to me that the array include is not needed anymore in the uBLAS storage. I just modified the
#include <boost/serialization/array.hpp>
to
#include <boost/serialization/array_wrapper.hpp>
and it works perfectly.
This issue of missing make_array member appears on, and the fix I just described I tested on OS X 10.11.6 and Fedora 25, Boost 1.64.0, custom install path.
Thanks so much, i was stuggling with that error message but had no idea what to include where, now its working though!