Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
arbor
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Analyze
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
arbor-sim
arbor
Commits
e4ba9317
Commit
e4ba9317
authored
8 years ago
by
Ben Cumming
Committed by
GitHub
8 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #87 from halfflat/bugfix/gcc4.9.3-compatibility
Bugfix/gcc4.9.3 compatibility
parents
6122b739
cb980dbd
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
src/util/range.hpp
+4
-4
4 additions, 4 deletions
src/util/range.hpp
with
4 additions
and
4 deletions
src/util/range.hpp
+
4
−
4
View file @
e4ba9317
...
...
@@ -87,9 +87,9 @@ struct range {
std
::
swap
(
right
,
other
.
right
);
}
decltype
(
*
left
)
front
()
const
{
return
*
left
;
}
auto
front
()
const
->
decltype
(
*
left
)
{
return
*
left
;
}
decltype
(
*
left
)
back
()
const
{
return
*
upto
(
left
,
right
);
}
auto
back
()
const
->
decltype
(
*
left
)
{
return
*
upto
(
left
,
right
);
}
template
<
typename
V
=
iterator
>
enable_if_t
<
is_random_access_iterator
<
V
>::
value
,
decltype
(
*
left
)
>
...
...
@@ -200,7 +200,7 @@ public:
// forward and input iterator requirements
auto
operator
*
()
const
->
decltype
(
*
iter
())
{
return
*
iter
();
}
auto
operator
*
()
const
->
decltype
(
*
(
this
->
iter
())
)
{
return
*
iter
();
}
I
operator
->
()
const
{
return
e_
.
template
ptr
<
0
>();
}
...
...
@@ -271,7 +271,7 @@ public:
return
iter
()
-
x
.
iter
();
}
auto
operator
[](
difference_type
n
)
const
->
decltype
(
*
iter
()){
auto
operator
[](
difference_type
n
)
const
->
decltype
(
*
(
this
->
iter
())
)
{
return
*
(
iter
()
+
n
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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