Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Core Modules
dune-common
Commits
96dc1aa8
Commit
96dc1aa8
authored
14 years ago
by
Oliver Sander
Browse files
Options
Downloads
Patches
Plain Diff
remove deprecated header 'helpertemplates.hh'
[[Imported from SVN: r6006]]
parent
e2e5da4d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dune/common/Makefile.am
+1
-1
1 addition, 1 deletion
dune/common/Makefile.am
dune/common/helpertemplates.hh
+0
-52
0 additions, 52 deletions
dune/common/helpertemplates.hh
with
1 addition
and
53 deletions
dune/common/Makefile.am
+
1
−
1
View file @
96dc1aa8
...
...
@@ -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
\
...
...
This diff is collapsed.
Click to expand it.
dune/common/helpertemplates.hh
deleted
100644 → 0
+
0
−
52
View file @
e2e5da4d
// -*- 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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment