Skip to content

Commit

Permalink
Fix a -Werror=pessimizing-move on gcc 13
Browse files Browse the repository at this point in the history
  • Loading branch information
jmarrec committed Sep 11, 2024
1 parent 60faa3b commit 7ba2423
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utilities/idf/IdfExtensibleGroup.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ class UTILITIES_API IdfExtensibleGroup
/// cast to type T, can throw std::bad_cast
template <typename T>
T cast() const {
return T(std::move(this->getImpl<typename T::ImplType>()), m_index);
return T(this->getImpl<typename T::ImplType>(), m_index);
}

/// cast to optional of type T
Expand Down

0 comments on commit 7ba2423

Please sign in to comment.