Skip to content
Snippets Groups Projects
Commit 96dc1aa8 authored by Oliver Sander's avatar Oliver Sander
Browse files

remove deprecated header 'helpertemplates.hh'

[[Imported from SVN: r6006]]
parent e2e5da4d
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,7 @@ commoninclude_HEADERS = alignment.hh array.hh \
arraylist.hh bitsetvector.hh debugstream.hh deprecated.hh \
enumset.hh exceptions.hh fixedarray.hh fmatrix.hh fmatrixev.hh \
fvector.hh ftraits.hh genericiterator.hh \
helpertemplates.hh iteratorfacades.hh \
iteratorfacades.hh \
misc.hh poolallocator.hh finitestack.hh \
sllist.hh shared_ptr.hh stdstreams.hh timer.hh tuples.hh \
typetraits.hh precision.hh bigunsignedint.hh \
......
// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
// vi: set et ts=4 sw=2 sts=2:
// $Id$
#ifndef DUNE_COMMON_HELPERTEMPLATES
#define DUNE_COMMON_HELPERTEMPLATES
// deprecated in dune 2.0
#warning Header file dune/common/helpertemplates.hh is deprecated
/** \file
\brief Compile-time constraint checks from the Stroustrup FAQ
\deprecated
*/
namespace Dune {
/**
Derived_from<A,B>();
or
template<class T> class Container : Derived_from<T,Mybase> {
...
};
*/
template<class T, class B> struct Derived_from {
static void constraints(T* p) { B* pb = p; }
Derived_from() { void (*p)(T*) = constraints; }
};
/** \todo Please doc me! */
template<class T1, class T2> struct Can_copy {
static void constraints(T1 a, T2 b) { T2 c = a; b = a; }
Can_copy() { void (*p)(T1,T2) = constraints; }
};
/** \todo Please doc me! */
template<class T1, class T2 = T1> struct Can_compare {
static void constraints(T1 a, T2 b) { a==b; a!=b; a<b; }
Can_compare() { void (*p)(T1,T2) = constraints; }
};
/** \todo Please doc me! */
template<class T1, class T2, class T3 = T1> struct Can_multiply {
static void constraints(T1 a, T2 b, T3 c) { c = a*b; }
Can_multiply() { void (*p)(T1,T2,T3) = constraints; }
};
} // namespace Dune
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment