diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2020-06-18 16:16:47 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2020-06-19 13:02:21 +0300 |
commit | 7ae9227794cb68be7af5cc3b10997fca93a2a76a (patch) | |
tree | a6593b1224ddc1b0c25dea18716fdab9191e10d1 /intern/quadriflow | |
parent | b3b445979e6a7e6cd80f9e5240d1813a25b2f0c1 (diff) |
Quadriflow: Fix compilation error with C++17
Unary function has been removed.
Unless I'm missing something subclass is not needed here.
Diffstat (limited to 'intern/quadriflow')
-rw-r--r-- | intern/quadriflow/quadriflow_capi.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); |