Skip to content
New issue

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

Compilation error with make_array #167

Closed
eliseemond opened this issue Mar 7, 2018 · 0 comments · Fixed by #168
Closed

Compilation error with make_array #167

eliseemond opened this issue Mar 7, 2018 · 0 comments · Fixed by #168

Comments

@eliseemond
Copy link
Contributor

The compilation stops at test_GeneralisedPoissonNoiseGenerator.cxx:32 (CentOS 6.5, gcc 4.9 and boost 1.64) with the following error:

error: ‘make_array’ is not a member of ‘boost::serialization’
ar & serialization::make_array(data_, s);
^

The error is known for boost 1.64: (and is probably specific to boost 1.64)
https://stackoverflow.com/questions/44534516/error-make-array-is-not-a-member-of-boostserialization/44544474?noredirect=1#comment77438420_44544474

'make_array' was moved from array.hpp to array_wrapper.hpp (in Boost/Serialization):
uBLAS/ublas#55 (comment)

Workaround: including
#include <boost/serialization/array_wrapper.hpp>
in the GeneralisedPoissonNoiseGenerator.h

eliseemond added a commit to eliseemond/STIR that referenced this issue Mar 7, 2018
test_GeneralisedPoissonNoiseGenerator was not compiling with boost 1.64, because make_array was moved in this release of boost.
To fix this, a new boost include was added to GeneralisedPoissonNoiseGenerator.h and fixed the issue.

Fixes UCL#167
ALEXJAZZ008008 pushed a commit to ALEXJAZZ008008/STIR that referenced this issue Apr 22, 2019
test_GeneralisedPoissonNoiseGenerator was not compiling with boost 1.64, because make_array was moved in this release of boost.
To fix this, a new boost include was added to GeneralisedPoissonNoiseGenerator.h and fixed the issue.

Fixes UCL#167
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant