* HACKING, Makefile.am, configure.ac, m4/gccwarn.m4,
src/Makefile.am, src/ltlast/Makefile.am, src/ltlast/allnodes.hh, src/ltlast/atomic_prop.cc, src/ltlast/atomic_prop.hh, src/ltlast/binop.cc, src/ltlast/binop.hh, src/ltlast/constant.cc, src/ltlast/constant.hh, src/ltlast/formulae.hh, src/ltlast/multop.cc, src/ltlast/multop.hh, src/ltlast/predecl.hh, src/ltlast/unop.cc, src/ltlast/unop.hh, src/ltlast/visitor.hh, src/ltlparse/Makefile.am, src/ltlparse/ltlparse.yy, src/ltlparse/ltlscan.ll, src/ltlparse/parsedecl.hh, src/ltlparse/public.hh, src/ltlvisit/Makefile.am, src/ltlvisit/dotty.cc, src/ltlvisit/dotty.hh, src/ltlvisit/dump.cc, src/ltlvisit/dump.hh, src/ltlvisit/rewrite.cc, src/ltlvisit/rewrite.hh, src/ltltest/Makefile.am, src/ltltest/defs.in, src/ltltest/readltl.cc, src/ltltest/parse.test, src/ltltest/parseerr.test, src/misc/Makefile.am, src/misc/const_sel.hh: New files.
This commit is contained in:
parent
ababb9ff93
commit
f0a8d0aeb3
46 changed files with 1818 additions and 0 deletions
3
src/misc/.cvsignore
Normal file
3
src/misc/.cvsignore
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
Makefile
|
||||
Makefile.in
|
||||
.deps
|
||||
2
src/misc/Makefile.am
Normal file
2
src/misc/Makefile.am
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
|
||||
include_HEADERS = const_sel.hh
|
||||
28
src/misc/const_sel.hh
Normal file
28
src/misc/const_sel.hh
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
#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
|
||||
Loading…
Add table
Add a link
Reference in a new issue