[mlpack] build failed with BOOST_PFTO
Ryan Curtin
ryan at ratml.org
Fri Sep 25 08:51:57 EDT 2015
On Fri, Sep 25, 2015 at 07:10:28PM +0800, Shangtong Zhang wrote:
> Hi,
>
> I install boost 1.59 then build failed.
>
> /Users/HurricaneTong/GitHub/mlpack/src/mlpack/../mlpack/core/data/serialization_shim.hpp:340:50: warning: unused
> parameter 'version' [-Wunused-parameter]
> void serialize(Archive& ar, const unsigned int version)
> ^
> /Users/HurricaneTong/GitHub/mlpack/src/mlpack/../mlpack/core/data/serialization_shim.hpp:496:29: error: unknown type
> name 'BOOST_PFTO'
> const BOOST_PFTO unsigned int version)
> ^
> /Users/HurricaneTong/GitHub/mlpack/src/mlpack/../mlpack/core/data/serialization_shim.hpp:496:40: error: expected ')'
> const BOOST_PFTO unsigned int version)
> ^
> /Users/HurricaneTong/GitHub/mlpack/src/mlpack/../mlpack/core/data/serialization_shim.hpp:494:22: note: to match this '('
> inline void serialize(Archive& ar,
> ^
> /Users/HurricaneTong/GitHub/mlpack/src/mlpack/../mlpack/core/data/serialization_shim.hpp:499:23: error: cannot refer to
> class template 'version' without a template argument list
> tptr->Serialize(ar, version);
> ^
> /usr/local/include/boost/serialization/version.hpp:36:8: note: template is declared here
> struct version
> ^
> 1 warning and 3 errors generated.
>
> I go into boost dir and there isn’t a pfto.hpp.
>
> http://www.boost.org/doc/libs/1_59_0/libs/serialization/doc/index.html
>
> It seems boost doesn’t support pfto since 1.58
Hi Shangtong,
I came across this a little while ago and committed a fix to a branch I
was working on, but haven't managed to finish that branch (and push it)
yet. I've committed 7e682d5 to master just now, and that should fix
your issue.
Thanks,
Ryan
--
Ryan Curtin | "Then they attacked a town. A small town, but a town
ryan at ratml.org | nonetheless. A town of people. People who died."
More information about the mlpack
mailing list