You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#pragma once
|
|
#include <memory>
|
|
|
|
template <typename T>
|
|
class FabricMixin {
|
|
public:
|
|
template <typename... Args>
|
|
static std::shared_ptr<T> create(Args&&... args) {
|
|
return std::shared_ptr<T>(new T(std::forward<Args>(args)...));
|
|
}
|
|
};
|