Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LinkTest
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cstao-public
LinkTest
Commits
b5336e8e
Commit
b5336e8e
authored
2 years ago
by
Yannik Müller
Browse files
Options
Downloads
Patches
Plain Diff
Fixed call to deleted constructor MemoryBuffer
parent
6b7b03a8
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
benchmark/memory.cc
+1
-1
1 addition, 1 deletion
benchmark/memory.cc
benchmark/memory.h
+2
-2
2 additions, 2 deletions
benchmark/memory.h
with
3 additions
and
3 deletions
benchmark/memory.cc
+
1
−
1
View file @
b5336e8e
...
...
@@ -89,7 +89,7 @@ void MemoryBuffer::memory_copy(MemoryBuffer& dst, MemoryBuffer& src){
}
MemoryBuffer
MemoryBuffer
::
wrap
(
void
*
p
,
std
::
size_t
len
,
AddressSpace
::
ID
addr_space_id
){
return
MemoryBuffer
(
p
,
len
,
addr_space_id
)
;
return
{
p
,
len
,
addr_space_id
}
;
}
void
MemoryBuffer
::
fill
(){
...
...
This diff is collapsed.
Click to expand it.
benchmark/memory.h
+
2
−
2
View file @
b5336e8e
...
...
@@ -165,8 +165,8 @@ class MemoryBuffer{
MemoryBuffer
(
const
MemoryBuffer
&
other
)
=
delete
;
MemoryBuffer
&
operator
=
(
const
MemoryBuffer
&
other
)
=
delete
;
MemoryBuffer
(
MemoryBuffer
&&
other
)
=
de
lete
;
MemoryBuffer
&
operator
=
(
const
MemoryBuffer
&&
other
)
=
delete
;
MemoryBuffer
(
MemoryBuffer
&&
other
)
=
de
fault
;
MemoryBuffer
&
operator
=
(
MemoryBuffer
&&
other
)
=
default
;
/* Wrap an existing pointer into a memory buffer. We do not know the allocator
* and hence have to ingore it. This is acceptable since the allocator is not
...
...
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