blob: a09d1eb6721d1cacfb212fe91b32547bd828fd26 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
/**
* @file keyed.hpp
* @author Felix Morgner (felix.morgner@gmail.com)
* @since 1.0.0
*/
#ifndef WANDA_META_KEYED_HPP
#define WANDA_META_KEYED_HPP
namespace wanda::meta
{
/**
* @brief A tag type to prevent construction of a type without a factory
*/
template<typename Derived>
struct keyed
{
protected:
struct key
{
};
explicit keyed(key) {}
};
} // namespace wanda::meta
#endif
|