mirror of
https://github.com/MariaDB/server.git
synced 2025-01-15 19:42:28 +01:00
oqgraph: remove clang warnings
-Wdeprecated-copy-with-user-provided-copy was causing a few errors on things that where defined in a way that was implicit. By removing code it now compiles without warnings. tested with fc38 / clang-16
This commit is contained in:
parent
34c283ba1b
commit
1815719a5b
3 changed files with 0 additions and 15 deletions
|
@ -146,17 +146,6 @@ namespace open_query
|
|||
HAVE_EDGE = 4,
|
||||
};
|
||||
|
||||
// Force assignment operator, so we can trace through in the debugger
|
||||
inline reference& operator=(const reference& ref)
|
||||
{
|
||||
m_flags = ref.m_flags;
|
||||
m_sequence = ref.m_sequence;
|
||||
m_vertex = ref.m_vertex;
|
||||
m_edge = ref.m_edge;
|
||||
m_weight = ref.m_weight;
|
||||
return *this;
|
||||
}
|
||||
|
||||
inline reference()
|
||||
: m_flags(0), m_sequence(0),
|
||||
m_vertex(graph_traits<Graph>::null_vertex()),
|
||||
|
|
|
@ -107,7 +107,6 @@ namespace open_query
|
|||
size_type n;
|
||||
};
|
||||
|
||||
reference operator[](size_type n) { return reference(*this, n); }
|
||||
bool operator[](size_type n) const { return test(n); }
|
||||
|
||||
size_type find_first() const;
|
||||
|
|
|
@ -60,9 +60,6 @@ namespace oqgraph3
|
|||
edge_iterator(const graph_ptr& graph, size_t offset=0)
|
||||
: _graph(graph)
|
||||
, _offset(offset) { }
|
||||
edge_iterator(const edge_iterator& pos)
|
||||
: _graph(pos._graph)
|
||||
, _offset(pos._offset) { }
|
||||
value_type operator*();
|
||||
self& operator+=(size_t n) { _offset+= n; return *this; }
|
||||
self& operator++() { ++_offset; return *this; }
|
||||
|
|
Loading…
Reference in a new issue