[Bf-blender-cvs] [2c53c394471] temp-cxx-upgrade: Quadriflow: Fix compilation error with C++17

Sergey Sharybin noreply at git.blender.org
Thu Jun 18 15:20:28 CEST 2020


Commit: 2c53c3944714e3fa2649f45f0679d414d639191d
Author: Sergey Sharybin
Date:   Thu Jun 18 15:16:47 2020 +0200
Branches: temp-cxx-upgrade
https://developer.blender.org/rB2c53c3944714e3fa2649f45f0679d414d639191d

Quadriflow: Fix compilation error with C++17

Unary function has been removed.
Unless I'm missing something subclass is not needed here.

===================================================================

M	intern/quadriflow/quadriflow_capi.cpp

===================================================================

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<ObjVertex, size_t> {
+struct ObjVertexHash {
   std::size_t operator()(const ObjVertex &v) const
   {
     size_t hash = std::hash<uint32_t>()(v.p);



More information about the Bf-blender-cvs mailing list