|
@@ -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;
|
|
|
|
|