diff --git a/base/stl_helpers.hpp b/base/stl_helpers.hpp index f2efacded5..da658080e0 100644 --- a/base/stl_helpers.hpp +++ b/base/stl_helpers.hpp @@ -254,7 +254,7 @@ class BackInsertFunctor { public: explicit BackInsertFunctor(Container & container) : m_Container(container) {} - void operator()(typename Container::value_type const & t) const { m_Container.push_back(t); } + template void operator()(T && t) const { m_Container.push_back(std::forward(t)); } private: Container & m_Container;