From d7cbcfa1dcb6dbceb195fe085a78b12b76d8a149 Mon Sep 17 00:00:00 2001 From: Luigi Malomo Date: Fri, 16 Oct 2020 14:43:39 +0200 Subject: [PATCH] removed all deprecated std::unary_function --- vcg/space/index/spatial_hashing.h | 4 +--- vcg/space/index/spatial_hashing2d.h | 7 +------ 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/vcg/space/index/spatial_hashing.h b/vcg/space/index/spatial_hashing.h index 449017c0..df17e169 100644 --- a/vcg/space/index/spatial_hashing.h +++ b/vcg/space/index/spatial_hashing.h @@ -33,10 +33,8 @@ namespace vcg{ - - // hashing function - struct HashFunctor : public std::unary_function + struct HashFunctor { enum { // parameters for hash table diff --git a/vcg/space/index/spatial_hashing2d.h b/vcg/space/index/spatial_hashing2d.h index ae27a3b2..a8d0c407 100644 --- a/vcg/space/index/spatial_hashing2d.h +++ b/vcg/space/index/spatial_hashing2d.h @@ -52,10 +52,8 @@ namespace vcg{ - - // hashing function - struct HashFunctor2D : public std::unary_function + struct HashFunctor2D { enum { // parameters for hash table @@ -78,9 +76,6 @@ namespace vcg{ } }; - - - /** Spatial Hash Table Spatial Hashing as described in "Optimized Spatial Hashing for Coll ision Detection of Deformable Objects",