Build fix: workaround g++ 4.8 decltype handling bug
[lttng-tools.git] / src / common / container-wrapper.hpp
index 0ed96d44ac51f6126c92f8eb77ba1eaa0ddda047..7f9678d08d3cb8252de645bd3731434d73b4e52a 100644 (file)
@@ -130,7 +130,7 @@ public:
                 *
                 * For more information, see Item 3 of Effective C++.
                 */
-               const auto& const_this = static_cast<const decltype(*this)&>(*this);
+               const auto& const_this = static_cast<const random_access_container_wrapper&>(*this);
 
                /* NOLINTNEXTLINE(cppcoreguidelines-pro-type-const-cast) */
                return const_cast<typename std::conditional<std::is_pointer<ElementType>::value,
This page took 0.023735 seconds and 4 git commands to generate.