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
3cf0023c
Commit
3cf0023c
authored
Apr 04, 2015
by
joshuawarner32@gmail.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add useful message on UNKNOWN_CONTAINS_CAPS
parent
21b98dad
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
any.c++
c++/src/capnp/any.c++
+6
-3
No files found.
c++/src/capnp/any.c++
View file @
3cf0023c
...
...
@@ -198,7 +198,8 @@ bool AnyPointer::Reader::operator ==(AnyPointer::Reader right) {
case
StructEqualityResult
:
:
NOT_EQUAL
:
return
false
;
case
StructEqualityResult
:
:
UNKNOWN_CONTAINS_CAPS
:
KJ_FAIL_REQUIRE
();
KJ_FAIL_REQUIRE
(
"operator== cannot determine equality of capabilities; use equals() instead if you need to handle this case"
);
default
:
KJ_UNREACHABLE
;
}
...
...
@@ -211,7 +212,8 @@ bool AnyStruct::Reader::operator ==(AnyStruct::Reader right) {
case
StructEqualityResult
:
:
NOT_EQUAL
:
return
false
;
case
StructEqualityResult
:
:
UNKNOWN_CONTAINS_CAPS
:
KJ_FAIL_REQUIRE
();
KJ_FAIL_REQUIRE
(
"operator== cannot determine equality of capabilities; use equals() instead if you need to handle this case"
);
default
:
KJ_UNREACHABLE
;
}
...
...
@@ -224,7 +226,8 @@ bool AnyList::Reader::operator ==(AnyList::Reader right) {
case
StructEqualityResult
:
:
NOT_EQUAL
:
return
false
;
case
StructEqualityResult
:
:
UNKNOWN_CONTAINS_CAPS
:
KJ_FAIL_REQUIRE
();
KJ_FAIL_REQUIRE
(
"operator== cannot determine equality of capabilities; use equals() instead if you need to handle this case"
);
default
:
KJ_UNREACHABLE
;
}
...
...
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