Lumiera
0.pre.04~rc.1
»edit your freedom«
Loading...
Searching...
No Matches
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
lib
Implementation namespace for support and library code.
Definition
common-services.cpp:55
lib::meta::NoInstance
An Entity never to be instantiated.
Definition
no-instance.hpp:48
lib::meta::NoInstance::NoInstance
NoInstance()
Definition
no-instance.hpp:49
lib::meta::NoInstance::NoInstance
NoInstance(NoInstance const &)
Definition
no-instance.hpp:50
lib
meta
no-instance.hpp
Generated on Fri Nov 7 2025 for Lumiera by
1.9.8