17#ifndef TOOLBOX_UTIL_VERSION_HPP
18#define TOOLBOX_UTIL_VERSION_HPP
22#include <boost/functional/hash.hpp>
25inline namespace util {
64static_assert(Version{1, 2} == Version{1, 2});
65static_assert(Version{1, 2} < Version{1, 3});
66static_assert(Version{1, 2} < Version{2, 2});
68template <
typename StreamT>
72 os <<
ver.major <<
'.' <<
ver.minor;
92 boost::hash_combine(h,
ver.major);
93 boost::hash_combine(h,
ver.minor);
ostream & operator<<(ostream &os, const pair< T, U > &p)