Maurice Grönwoldt
5bb68a7d02
We have no make install support... so we don't need to have everything as a single-header and lib file.
11 lines
269 B
C++
11 lines
269 B
C++
#pragma once
|
|
|
|
#include <memory>
|
|
|
|
namespace VWeb {
|
|
template <typename T> using Ref = std::shared_ptr<T>;
|
|
template <typename T, typename... Args>
|
|
constexpr Ref<T> CreateRef(Args &&...args) {
|
|
return std::make_shared<T>(std::forward<Args>(args)...);
|
|
}
|
|
} // namespace VWeb
|