From f708f454d90ee6dd6587d4bc6bb854a5ff6c42b1 Mon Sep 17 00:00:00 2001 From: cryptozoidberg Date: Sat, 12 Feb 2022 22:38:12 +0300 Subject: [PATCH] fixes related to tor --- contrib/epee/include/misc_language.h | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/contrib/epee/include/misc_language.h b/contrib/epee/include/misc_language.h index 276dfe02..1389ba03 100644 --- a/contrib/epee/include/misc_language.h +++ b/contrib/epee/include/misc_language.h @@ -31,6 +31,8 @@ #include #include #include +#include +#include #include #include "include_base_utils.h" #include "auto_val_init.h" @@ -111,17 +113,6 @@ namespace misc_utils return (std::numeric_limits::max)(); } - // TEMPLATE STRUCT less - template - 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 bool is_less_as_pod(const _Ty& _Left, const _Ty& _Right) { // apply operator< to operands