Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-foamgrid
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
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
extensions
dune-foamgrid
Merge requests
!9
[cleanup] Remove deprecated Dune::remove_const with std::remove_const
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
[cleanup] Remove deprecated Dune::remove_const with std::remove_const
feature/replace-deprecated-removeconst
into
master
Overview
0
Commits
1
Pipelines
0
Changes
1
Merged
Timo Koch
requested to merge
feature/replace-deprecated-removeconst
into
master
9 years ago
Overview
0
Commits
1
Pipelines
0
Changes
-
Expand
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
87d41a40
1 commit,
9 years ago
+
6
−
6
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
dune/foamgrid/foamgrid/foamgridindexsets.hh
+
6
−
6
Options
@@ -199,9 +199,9 @@ class FoamGridLeafIndexSet :
{
// Grid dimension
enum
{
dimgrid
=
remove_const
<
GridImp
>::
type
::
dimension
};
enum
{
dimgrid
=
std
::
remove_const
<
GridImp
>::
type
::
dimension
};
// World dimension
enum
{
dimworld
=
remove_const
<
GridImp
>::
type
::
dimensionworld
};
enum
{
dimworld
=
std
::
remove_const
<
GridImp
>::
type
::
dimensionworld
};
public
:
@@ -421,11 +421,11 @@ class FoamGridIdSet :
//! get id of an entity
/*
We use the remove_const to extract the Type from the mutable class,
We use the
std::
remove_const to extract the Type from the mutable class,
because the const class is not instantiated yet.
*/
template
<
int
cd
>
IdType
id
(
const
typename
remove_const
<
GridImp
>::
type
::
Traits
::
template
Codim
<
cd
>
::
Entity
&
e
)
const
IdType
id
(
const
typename
std
::
remove_const
<
GridImp
>::
type
::
Traits
::
template
Codim
<
cd
>
::
Entity
&
e
)
const
{
return
GridImp
::
getRealImplementation
(
e
).
target_
->
id_
;
}
@@ -433,10 +433,10 @@ class FoamGridIdSet :
//! get id of subEntity
/*
We use the remove_const to extract the Type from the mutable class,
We use the
std::
remove_const to extract the Type from the mutable class,
because the const class is not instantiated yet.
*/
IdType
subId
(
const
typename
remove_const
<
GridImp
>::
type
::
Traits
::
template
Codim
<
0
>
::
Entity
&
e
,
int
i
,
int
codim
)
const
IdType
subId
(
const
typename
std
::
remove_const
<
GridImp
>::
type
::
Traits
::
template
Codim
<
0
>
::
Entity
&
e
,
int
i
,
int
codim
)
const
{
return
GridImp
::
getRealImplementation
(
e
).
subId
(
i
,
codim
);
}
Loading