aboutsummaryrefslogtreecommitdiff
path: root/include/wanda/keyed.hpp
blob: 58f17adfa92048c4f9162ee39021e990c3ffe701 (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_KEYED_HPP
#define WANDA_KEYED_HPP

namespace wanda
{
  /**
   * @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

#endif