Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Gaudi
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Gaudi
Gaudi
Commits
08d11387
Commit
08d11387
authored
7 years ago
by
Marco Clemencic
Browse files
Options
Downloads
Patches
Plain Diff
Hide local implementation of as_const when using C++17
parent
d2ff12c1
No related branches found
No related tags found
1 merge request
!599
Fix compilation with C++17
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
GaudiAlg/GaudiAlg/FunctionalDetails.h
+4
-1
4 additions, 1 deletion
GaudiAlg/GaudiAlg/FunctionalDetails.h
with
4 additions
and
1 deletion
GaudiAlg/GaudiAlg/FunctionalDetails.h
+
4
−
1
View file @
08d11387
...
...
@@ -101,6 +101,7 @@ namespace Gaudi
}
}
#if __cplusplus < 201703L
// implementation of C++17 std::as_const, see http://en.cppreference.com/w/cpp/utility/as_const
template
<
typename
T
>
constexpr
typename
std
::
add_const
<
T
>::
type
&
as_const
(
T
&
t
)
noexcept
...
...
@@ -110,7 +111,9 @@ namespace Gaudi
template
<
typename
T
>
void
as_const
(
T
&&
t
)
=
delete
;
#else
using
std
::
as_const
;
#endif
/////////////////////////////////////////
template
<
typename
Out1
,
typename
Out2
,
...
...
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