Fix: container-wrapper: size container operation can throw
[lttng-tools.git] / src / common / container-wrapper.hpp
index 5ee20dfeab3b2b3f92d94539ddf25dd156fae0e1..c2c59f89da06f07595d5c7cd262dfbc3fcbdde35 100644 (file)
@@ -99,7 +99,7 @@ public:
 
        iterator end()
        {
-               return iterator(*this, ContainerOperations::size(_container));
+               return iterator(*this, size());
        }
 
        const_iterator begin() const noexcept
@@ -109,10 +109,10 @@ public:
 
        const_iterator end() const
        {
-               return const_iterator(*this, ContainerOperations::size(_container));
+               return const_iterator(*this, size());
        }
 
-       std::size_t size() const noexcept
+       std::size_t size() const
        {
                return ContainerOperations::size(_container);
        }
This page took 0.025093 seconds and 4 git commands to generate.