Lumiera  0.pre.03
»edit your freedom«
no-instance.hpp
Go to the documentation of this file.
1 /*
2  NO-INSTANCE.hpp - marker for pure metaprogramming types
3 
4  Copyright (C)
5  2011, Hermann Vosseler <Ichthyostega@web.de>
6 
7   **Lumiera** is free software; you can redistribute it and/or modify it
8   under the terms of the GNU General Public License as published by the
9   Free Software Foundation; either version 2 of the License, or (at your
10   option) any later version. See the file COPYING for further details.
11 
12 */
13 
14 
33 #ifndef LIB_META_NO_INSTANCE_H
34 #define LIB_META_NO_INSTANCE_H
35 
36 
37 namespace lib {
38 namespace meta{
39 
46  template<class X>
47  struct NoInstance
48  {
49  NoInstance() { static_assert (!sizeof(X)); }
50  NoInstance (NoInstance const&) { static_assert (!sizeof(X)); }
51  };
52 
53 }} // namespace lib::meta
54 #endif
Implementation namespace for support and library code.
An Entity never to be instantiated.
Definition: no-instance.hpp:47