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
d601b842
Commit
d601b842
authored
Sep 14, 2017
by
Kenton Varda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Work around GCC 4.8 bugs.
parent
efd0db8c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
4 deletions
+16
-4
async-io.c++
c++/src/kj/async-io.c++
+16
-4
No files found.
c++/src/kj/async-io.c++
View file @
d601b842
...
...
@@ -359,7 +359,10 @@ ArrayPtr<const CidrRange> localCidrs() {
"0.0.0.0/32"
_kj
,
"::/128"
_kj
,
};
return
result
;
// TODO(cleanup): A bug in GCC 4.8, fixed in 4.9, prevents result from implicitly
// casting to our return type.
return
kj
::
arrayPtr
(
result
,
kj
::
size
(
result
));
}
ArrayPtr
<
const
CidrRange
>
privateCidrs
()
{
...
...
@@ -373,7 +376,10 @@ ArrayPtr<const CidrRange> privateCidrs() {
"fc00::/7"
_kj
,
// RFC4193 unique private network
"fe80::/10"
_kj
,
// RFC4291 "link local" (auto-configured LAN in absence of DHCP)
};
return
result
;
// TODO(cleanup): A bug in GCC 4.8, fixed in 4.9, prevents result from implicitly
// casting to our return type.
return
kj
::
arrayPtr
(
result
,
kj
::
size
(
result
));
}
ArrayPtr
<
const
CidrRange
>
reservedCidrs
()
{
...
...
@@ -386,7 +392,10 @@ ArrayPtr<const CidrRange> reservedCidrs() {
"2001::/23"
_kj
,
// RFC2928 reserved for special protocols
"ff00::/8"
_kj
,
// RFC4291 multicast
};
return
result
;
// TODO(cleanup): A bug in GCC 4.8, fixed in 4.9, prevents result from implicitly
// casting to our return type.
return
kj
::
arrayPtr
(
result
,
kj
::
size
(
result
));
}
ArrayPtr
<
const
CidrRange
>
exampleAddresses
()
{
...
...
@@ -396,7 +405,10 @@ ArrayPtr<const CidrRange> exampleAddresses() {
"203.0.113.0/24"
_kj
,
// RFC5737 "example address" block 3 -- like example.com for IPs
"2001:db8::/32"
_kj
,
// RFC3849 "example address" block -- like example.com for IPs
};
return
result
;
// TODO(cleanup): A bug in GCC 4.8, fixed in 4.9, prevents result from implicitly
// casting to our return type.
return
kj
::
arrayPtr
(
result
,
kj
::
size
(
result
));
}
NetworkFilter
::
NetworkFilter
()
...
...
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