Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
opendht
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Model registry
Analyze
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
savoirfairelinux
opendht
Commits
73247973
Commit
73247973
authored
8 years ago
by
Adrien Béraud
Browse files
Options
Downloads
Patches
Plain Diff
select: cleanup
parent
696ac1bb
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/opendht/value.h
+1
-2
1 addition, 2 deletions
include/opendht/value.h
with
1 addition
and
2 deletions
include/opendht/value.h
+
1
−
2
View file @
73247973
...
...
@@ -662,13 +662,12 @@ struct OPENDHT_PUBLIC Select
* @return the set of fields.
*/
std
::
set
<
Value
::
Field
>
getSelection
()
const
{
return
std
::
set
<
Value
::
Field
>
(
fieldSelection_
.
begin
(),
fieldSelection_
.
end
()
)
;
return
{
fieldSelection_
.
begin
(),
fieldSelection_
.
end
()
}
;
}
template
<
typename
Packer
>
void
msgpack_pack
(
Packer
&
pk
)
const
{
pk
.
pack
(
fieldSelection_
);
}
void
msgpack_unpack
(
const
msgpack
::
object
&
o
)
{
fieldSelection_
.
clear
();
fieldSelection_
=
o
.
as
<
decltype
(
fieldSelection_
)
>
();
}
...
...
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