25 #pragma GCC diagnostic push
26 #pragma GCC diagnostic ignored "-Wall"
27 #pragma GCC diagnostic ignored "-Wpragmas"
28 #pragma GCC diagnostic ignored "-Wunused-parameter"
29 #pragma GCC diagnostic ignored "-Wunused-variable"
30 #include <boost/units/quantity.hpp>
31 #pragma GCC diagnostic pop
34 #ifndef PSS_ASTROTYPES_UNITS_UTILITIES_H
35 #define PSS_ASTROTYPES_UNITS_UTILITIES_H
42 template<
typename UnitsType,
typename DataType>
43 struct hash<
boost::units::quantity<UnitsType, DataType>>
45 std::size_t
operator()(
const boost::units::quantity<UnitsType, DataType> & quantity)
const
47 return std::hash<DataType>()(quantity.value());
53 #endif // PSS_ASTROTYPES_UNITS_UTILITIES_H
std::size_t operator()(const boost::units::quantity< UnitsType, DataType > &quantity) const