sandbox
Loading...
Searching...
No Matches
enable_private_constructor.hpp
1#ifndef LIBSBX_UTILITY_ENABLE_PRIVATE_CONSTRUCTOR_HPP_
2#define LIBSBX_UTILITY_ENABLE_PRIVATE_CONSTRUCTOR_HPP_
3
4namespace sbx::utility {
5
6template<typename Derived>
7struct enable_private_constructor : public Derived {
8 template<typename... Args>
9 enable_private_constructor(Args&&... args) : Derived{std::forward<Args>(args)...} {}
10}; // struct enable_private_constructor
11
12} // namespace sbx::utility
13
14#endif // LIBSBX_UTILITY_ENABLE_PRIVATE_CONSTRUCTOR_HPP_
Definition: enable_private_constructor.hpp:7