pietern / goestools

Tools to work with signals and files from GOES satellites
https://pietern.github.io/goestools/
BSD 2-Clause "Simplified" License
372 stars 83 forks source link

Replace deprecated use of std::unary_function #149

Closed jim-minter closed 9 months ago

jim-minter commented 2 years ago

Fix the following build warning:

In file included from /home/src/goestools/src/goesproc/handler_goesn.h:10,
                 from /home/src/goestools/src/goesproc/goesproc.cc:16:
/home/src/goestools/src/goesproc/types.h:44:37: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations]
   44 | struct SegmentKeyHash : public std::unary_function<SegmentKey, std::size_t> {
      |                                     ^~~~~~~~~~~~~~
In file included from /usr/include/c++/12/string:48,
                 from /usr/include/c++/12/bits/locale_classes.h:40,
                 from /usr/include/c++/12/bits/ios_base.h:41,
                 from /usr/include/c++/12/ios:42,
                 from /usr/include/c++/12/istream:38,
                 from /usr/include/c++/12/fstream:38,
                 from /home/src/goestools/src/goesproc/goesproc.cc:2:
/usr/include/c++/12/bits/stl_function.h:117:12: note: declared here
pietern commented 9 months ago

Thanks!