From 7ae9227794cb68be7af5cc3b10997fca93a2a76a Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Thu, 18 Jun 2020 15:16:47 +0200 Subject: Quadriflow: Fix compilation error with C++17 Unary function has been removed. Unless I'm missing something subclass is not needed here. --- intern/quadriflow/quadriflow_capi.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/intern/quadriflow/quadriflow_capi.cpp b/intern/quadriflow/quadriflow_capi.cpp index 302c7a0ae30..53237289874 100644 --- a/intern/quadriflow/quadriflow_capi.cpp +++ b/intern/quadriflow/quadriflow_capi.cpp @@ -49,7 +49,7 @@ struct ObjVertex { } }; -struct ObjVertexHash : std::unary_function { +struct ObjVertexHash { std::size_t operator()(const ObjVertex &v) const { size_t hash = std::hash()(v.p); -- cgit v1.2.3