Build fix: missing operator- for iterator on g++7
[lttng-tools.git] / src / common / container-wrapper.hpp
index 20642a8d294213a5a914bd6d3a0cbedcb2c4767c..25385fc43837961ec4301dd9f7254f0b89ccc3b6 100644 (file)
@@ -60,6 +60,11 @@ class random_access_container_wrapper {
                        return *this;
                }
 
+               ptrdiff_t operator-(const _iterator& other) const
+               {
+                       return _index - other._index;
+               }
+
                bool operator==(const _iterator& other) const noexcept
                {
                        return _index == other._index;
This page took 0.023305 seconds and 4 git commands to generate.