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
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
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
Timo Koch
dune-common
Commits
d848b479
Commit
d848b479
authored
15 years ago
by
Oliver Sander
Browse files
Options
Downloads
Patches
Plain Diff
remove deprecated class EnableIf. Use enable_if instead
[[Imported from SVN: r5551]]
parent
b7d985c3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
common/typetraits.hh
+1
-20
1 addition, 20 deletions
common/typetraits.hh
with
1 addition
and
20 deletions
common/typetraits.hh
+
1
−
20
View file @
d848b479
...
...
@@ -9,8 +9,6 @@
#include
<tr1/type_traits>
#endif
#include
<dune/common/deprecated.hh>
namespace
Dune
{
...
...
@@ -254,23 +252,6 @@ namespace Dune
};
};
/**
* @brief Enable typedef if condition is met.
*
* Depending on the value of b the type T is provided as typedef type.
* \deprecated Use enable_if instead
*/
template
<
bool
b
,
typename
T
=
void
>
struct
EnableIf
{
typedef
T
type
;
typedef
T
Type
;
}
DUNE_DEPRECATED
;
template
<
typename
T
>
struct
EnableIf
<
false
,
T
>
{}
DUNE_DEPRECATED
;
#ifdef HAVE_TYPE_TRAITS
using
std
::
enable_if
;
#else
...
...
@@ -299,7 +280,7 @@ namespace Dune
*/
template
<
class
T1
,
class
T2
,
class
Type
>
struct
EnableIfInterOperable
:
public
E
nable
I
f
<
IsInteroperable
<
T1
,
T2
>::
value
,
Type
>
:
public
e
nable
_i
f
<
IsInteroperable
<
T1
,
T2
>::
value
,
Type
>
{};
#if defined HAVE_TYPE_TRAITS
...
...
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