I have been trying to compile octopus with g++ v12.2.0 and I get errors related to std::unary_function being depreciated. I am not sure if removing these would cause problems with earlier versions of gcc. It seems like base class inheritance is being slowly being depreciated.
For example:
src/core/types/shared_haplotype.hpp:105:46: error: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Werror=deprecated-declarations]
105 | struct hash<octopus::SharedHaplotype> : std::unary_function<octopus::SharedHaplotype, std::size_t>
I went through the files and removed the inheritance from the following files and it compiles succesfully:
Hi,
I have been trying to compile octopus with g++ v12.2.0 and I get errors related to std::unary_function being depreciated. I am not sure if removing these would cause problems with earlier versions of gcc. It seems like
base
class inheritance is being slowly being depreciated.For example:
I went through the files and removed the inheritance from the following files and it compiles succesfully: