1
0
Fork 0
forked from lthn/blockchain

fixes related to tor

This commit is contained in:
cryptozoidberg 2022-02-12 22:38:12 +03:00
parent dba8cd74b9
commit f708f454d9
No known key found for this signature in database
GPG key ID: 22DEB97A54C6FDEC

View file

@ -31,6 +31,8 @@
#include <limits>
#include <set>
#include <iterator>
#include <algorithm>
#include <functional>
#include <boost/thread.hpp>
#include "include_base_utils.h"
#include "auto_val_init.h"
@ -111,17 +113,6 @@ namespace misc_utils
return (std::numeric_limits<t_type>::max)();
}
// TEMPLATE STRUCT less
template<class _Ty>
struct less_as_pod
: public std::binary_function<_Ty, _Ty, bool>
{ // functor for operator<
bool operator()(const _Ty& _Left, const _Ty& _Right) const
{ // apply operator< to operands
return memcmp(&_Left, &_Right, sizeof(_Left)) < 0;
}
};
template<class _Ty>
bool is_less_as_pod(const _Ty& _Left, const _Ty& _Right)
{ // apply operator< to operands