move return

thread
Brett 2024-08-10 19:53:39 -04:00
parent 877b380a00
commit ff5a30c778
2 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.25) cmake_minimum_required(VERSION 3.25)
project(blt-gp VERSION 0.0.132) project(blt-gp VERSION 0.0.133)
include(CTest) include(CTest)

View File

@ -181,11 +181,11 @@ namespace blt::gp
if constexpr (detail::is_same_v<Context, detail::remove_cv_ref<typename detail::first_arg<Args...>::type>>) if constexpr (detail::is_same_v<Context, detail::remove_cv_ref<typename detail::first_arg<Args...>::type>>)
{ {
// first arg is context // first arg is context
write_allocator.push(this->operator()(context, read_allocator)); write_allocator.push(std::move(this->operator()(context, read_allocator)));
} else } else
{ {
// first arg isn't context // first arg isn't context
write_allocator.push(this->operator()(read_allocator)); write_allocator.push(std::move(this->operator()(read_allocator)));
} }
}; };
} }