Skip to content

Commit

Permalink
Merge pull request #33 from mshabunin/fix-clang-warn
Browse files Browse the repository at this point in the history
Fixed clang -Wdeprecated-copy warnings in OpenCV
  • Loading branch information
dmatveev committed May 31, 2023
2 parents 7f36350 + 88a62a4 commit 0ee020d
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions sources/ade/include/ade/typed_graph.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,14 @@ class ConstTypedGraph
initIds();
}

// explicitly define copy-constructor since we modify operator=
ConstTypedGraph(const ConstTypedGraph<Types...>& other):
m_srcGraph(other.m_srcGraph)
{
details::checkUniqueNames<Types...>();
initIds();
}

template<typename... OtherTypes>
ConstTypedGraph(const ConstTypedGraph<OtherTypes...>& other):
m_srcGraph(other.m_srcGraph)
Expand Down Expand Up @@ -176,6 +184,12 @@ class TypedGraph final : public ConstTypedGraph<Types...>
{
}

// explicitly define copy-constructor since we modify operator=
TypedGraph(TypedGraph& graph):
ConstTypedGraph<Types...>(graph)
{
}

template<typename... OtherTypes>
TypedGraph(const TypedGraph<OtherTypes...>& other):
ConstTypedGraph<Types...>(other)
Expand Down

0 comments on commit 0ee020d

Please sign in to comment.