Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
glow
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
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
Glow
glow
Commits
a7bc22c2
Commit
a7bc22c2
authored
2 years ago
by
Julius Nehring-Wirxel
Browse files
Options
Downloads
Patches
Plain Diff
Remove const& for initializer_list
parent
5c251bca
No related branches found
No related tags found
1 merge request
!41
Add api using cc::span for all functions that take contiguous ranges
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/glow/objects/AtomicCounterBuffer.hh
+1
-1
1 addition, 1 deletion
src/glow/objects/AtomicCounterBuffer.hh
with
1 addition
and
1 deletion
src/glow/objects/AtomicCounterBuffer.hh
+
1
−
1
View file @
a7bc22c2
...
...
@@ -47,6 +47,6 @@ public: // static construction
static
SharedAtomicCounterBuffer
create
(
uint32_t
value
=
0
,
int
count
=
1
);
/// Creates an atomic counter buffer with given initial values
static
SharedAtomicCounterBuffer
create
(
cc
::
span
<
uint32_t
const
>
values
);
static
SharedAtomicCounterBuffer
create
(
std
::
initializer_list
<
uint32_t
>
const
&
values
)
{
return
create
(
cc
::
span
(
values
.
begin
(),
values
.
size
()));
}
static
SharedAtomicCounterBuffer
create
(
std
::
initializer_list
<
uint32_t
>
values
)
{
return
create
(
cc
::
span
(
values
.
begin
(),
values
.
size
()));
}
};
}
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