* src/misc/const_sel.hh: Delete.

* src/misc/Makefile.am (misc_HEADERS): Remove const_sel.hh.
This commit is contained in:
Alexandre Duret-Lutz 2003-07-31 11:49:53 +00:00
parent baa7a6f258
commit bdd2be3366
3 changed files with 4 additions and 30 deletions

View file

@ -5,8 +5,7 @@ miscdir = $(pkgincludedir)/misc
misc_HEADERS = \
bddalloc.hh \
bddlt.hh \
const_sel.hh
bddlt.hh
noinst_LTLIBRARIES = libmisc.la
libmisc_la_SOURCES = \

View file

@ -1,28 +0,0 @@
#ifndef SPOT_MISC_CONSTSEL_HH
# define SPOT_MISC_CONSTSEL_HH
namespace spot
{
// Be default, define the type as-is.
template <class T, bool WantConst>
struct const_sel
{
typedef T t;
};
// If const is wanted, add it.
template <class T>
struct const_sel<T, true>
{
typedef const T t;
};
// If const is present but isn't wanted, remove it.
template <class T>
struct const_sel<const T, false>
{
typedef const T t;
};
}
#endif // SPOT_MISC_CONSTSEL_HH