Browse Source

Fixed std::move instead of std::forward

Paul-Louis Ageneau 2 years ago
parent
commit
78cf08cc25
1 changed files with 1 additions and 1 deletions
  1. 1 1
      include/rtc/utils.hpp

+ 1 - 1
include/rtc/utils.hpp

@@ -144,7 +144,7 @@ template <typename T> class CheshireCat {
 public:
 public:
 	CheshireCat(impl_ptr<T> impl) : mImpl(std::move(impl)) {}
 	CheshireCat(impl_ptr<T> impl) : mImpl(std::move(impl)) {}
 	template <typename... Args>
 	template <typename... Args>
-	CheshireCat(Args... args) : mImpl(std::make_shared<T>(std::move(args)...)) {}
+	CheshireCat(Args... args) : mImpl(std::make_shared<T>(std::forward<Args>(args)...)) {}
 	CheshireCat(CheshireCat<T> &&cc) { *this = std::move(cc); }
 	CheshireCat(CheshireCat<T> &&cc) { *this = std::move(cc); }
 	CheshireCat(const CheshireCat<T> &) = delete;
 	CheshireCat(const CheshireCat<T> &) = delete;