Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
capnproto
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
capnproto
Commits
8de55087
Commit
8de55087
authored
Oct 12, 2013
by
Kenton Varda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More GCC fixes.
parent
bab217b2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
capability.c++
c++/src/capnp/capability.c++
+0
-1
layout.c++
c++/src/capnp/layout.c++
+3
-1
one-of.h
c++/src/kj/one-of.h
+2
-2
No files found.
c++/src/capnp/capability.c++
View file @
8de55087
...
...
@@ -30,7 +30,6 @@
#include <kj/refcount.h>
#include <kj/debug.h>
#include <kj/vector.h>
#include <kj/one-of.h>
#include <map>
namespace
capnp
{
...
...
c++/src/capnp/layout.c++
View file @
8de55087
...
...
@@ -1712,7 +1712,7 @@ struct WireHelpers {
goto
useDefault
;
}
setCapabilityPointer
(
dstSegment
,
dst
,
return
setCapabilityPointer
(
dstSegment
,
dst
,
srcSegment
->
getArena
()
->
extractCap
(
StructReader
(
srcSegment
,
ptr
,
reinterpret_cast
<
const
WirePointer
*>
(
ptr
+
src
->
structRef
.
dataSize
.
get
()),
...
...
@@ -1727,6 +1727,8 @@ struct WireHelpers {
goto
useDefault
;
}
}
KJ_UNREACHABLE
;
}
static
void
adopt
(
SegmentBuilder
*
segment
,
WirePointer
*
ref
,
OrphanBuilder
&&
value
)
{
...
...
c++/src/kj/one-of.h
View file @
8de55087
...
...
@@ -115,13 +115,13 @@ private:
inline
bool
copyVariantFrom
(
const
OneOf
&
other
)
{
if
(
other
.
is
<
T
>
())
{
ctor
(
*
reinterpret_cast
<
T
*>
(
space
),
other
.
get
<
T
>
());
tag
=
typeIndex
<
T
>
();
}
return
false
;
}
void
copyFrom
(
const
OneOf
&
other
)
{
// Initialize as a copy of `other`. Expects that `this` starts out uninitialized, so the tag
// is invalid.
tag
=
other
.
tag
;
doAll
(
copyVariantFrom
<
Variants
>
(
other
)...);
}
...
...
@@ -129,13 +129,13 @@ private:
inline
bool
moveVariantFrom
(
OneOf
&
other
)
{
if
(
other
.
is
<
T
>
())
{
ctor
(
*
reinterpret_cast
<
T
*>
(
space
),
kj
::
mv
(
other
.
get
<
T
>
()));
tag
=
typeIndex
<
T
>
();
}
return
false
;
}
void
moveFrom
(
OneOf
&
other
)
{
// Initialize as a copy of `other`. Expects that `this` starts out uninitialized, so the tag
// is invalid.
tag
=
other
.
tag
;
doAll
(
moveVariantFrom
<
Variants
>
(
other
)...);
}
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment