Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Actor Framework
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
Actor Framework
Commits
20338eab
Commit
20338eab
authored
Jul 10, 2018
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix build on GCC 8
parent
ef16fe0d
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
16 additions
and
12 deletions
+16
-12
libcaf_core/caf/byte_address.hpp
libcaf_core/caf/byte_address.hpp
+7
-0
libcaf_core/caf/config.hpp
libcaf_core/caf/config.hpp
+5
-1
libcaf_core/caf/detail/parser/read_ipv6_address.hpp
libcaf_core/caf/detail/parser/read_ipv6_address.hpp
+1
-0
libcaf_core/caf/ipv4_address.hpp
libcaf_core/caf/ipv4_address.hpp
+0
-4
libcaf_core/caf/ipv6_address.hpp
libcaf_core/caf/ipv6_address.hpp
+0
-5
libcaf_core/caf/string_view.hpp
libcaf_core/caf/string_view.hpp
+2
-2
libcaf_core/src/uri_impl.cpp
libcaf_core/src/uri_impl.cpp
+1
-0
No files found.
libcaf_core/caf/byte_address.hpp
View file @
20338eab
...
@@ -43,6 +43,13 @@ public:
...
@@ -43,6 +43,13 @@ public:
return
dref
().
bytes
()[
index
];
return
dref
().
bytes
()[
index
];
}
}
// -- properties -------------------------------------------------------------
/// Returns the number of bytes of the address.
size_t
size
()
const
noexcept
{
return
dref
().
bytes
().
size
();
}
// -- comparison -------------------------------------------------------------
// -- comparison -------------------------------------------------------------
/// Returns a negative number if `*this < other`, zero if `*this == other`
/// Returns a negative number if `*this < other`, zero if `*this == other`
...
...
libcaf_core/caf/config.hpp
View file @
20338eab
...
@@ -136,7 +136,11 @@
...
@@ -136,7 +136,11 @@
_Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"")
_Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"")
# define CAF_POP_WARNINGS \
# define CAF_POP_WARNINGS \
_Pragma("GCC diagnostic pop")
_Pragma("GCC diagnostic pop")
# if __GNUC__ >= 7
# define CAF_ANNOTATE_FALLTHROUGH __attribute__((fallthrough))
# else
# define CAF_ANNOTATE_FALLTHROUGH static_cast<void>(0)
# define CAF_ANNOTATE_FALLTHROUGH static_cast<void>(0)
# endif
# define CAF_COMPILER_VERSION \
# define CAF_COMPILER_VERSION \
(__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__)
(__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__)
// disable thread_local on GCC/macOS due to heap-use-after-free bug:
// disable thread_local on GCC/macOS due to heap-use-after-free bug:
...
...
libcaf_core/caf/detail/parser/read_ipv6_address.hpp
View file @
20338eab
...
@@ -18,6 +18,7 @@
...
@@ -18,6 +18,7 @@
#pragma once
#pragma once
#include <algorithm>
#include <cstdint>
#include <cstdint>
#include "caf/config.hpp"
#include "caf/config.hpp"
...
...
libcaf_core/caf/ipv4_address.hpp
View file @
20338eab
...
@@ -85,10 +85,6 @@ public:
...
@@ -85,10 +85,6 @@ public:
return
bytes_
;
return
bytes_
;
}
}
constexpr
size_t
size
()
const
noexcept
{
return
bytes_
.
size
();
}
// -- inspection -------------------------------------------------------------
// -- inspection -------------------------------------------------------------
template
<
class
Inspector
>
template
<
class
Inspector
>
...
...
libcaf_core/caf/ipv6_address.hpp
View file @
20338eab
...
@@ -100,11 +100,6 @@ public:
...
@@ -100,11 +100,6 @@ public:
return
bytes_
;
return
bytes_
;
}
}
/// Returns the number of bytes of an IPv6 address.
inline
size_t
size
()
const
noexcept
{
return
bytes_
.
size
();
}
/// Returns whether this address contains only zeros, i.e., equals `::`.
/// Returns whether this address contains only zeros, i.e., equals `::`.
inline
bool
zero
()
const
noexcept
{
inline
bool
zero
()
const
noexcept
{
return
half_segments_
[
0
]
==
0
&&
half_segments_
[
1
]
==
0
;
return
half_segments_
[
0
]
==
0
&&
half_segments_
[
1
]
==
0
;
...
...
libcaf_core/caf/string_view.hpp
View file @
20338eab
...
@@ -52,11 +52,11 @@ struct is_string_like {
...
@@ -52,11 +52,11 @@ struct is_string_like {
decltype
(
x
->
size
())
decltype
(
x
->
size
())
>::
value
>::
value
>::
type
*
=
nullptr
,
>::
type
*
=
nullptr
,
// check if `x->
compare(*x
)` is well-formed and returns an integer
// check if `x->
find('?', 0
)` is well-formed and returns an integer
// (distinguishes vectors from strings)
// (distinguishes vectors from strings)
typename
std
::
enable_if
<
typename
std
::
enable_if
<
std
::
is_integral
<
std
::
is_integral
<
decltype
(
x
->
compare
(
*
x
))
decltype
(
x
->
find
(
'?'
,
0
))
>::
value
>::
value
>::
type
*
=
nullptr
);
>::
type
*
=
nullptr
);
...
...
libcaf_core/src/uri_impl.cpp
View file @
20338eab
...
@@ -96,6 +96,7 @@ void uri_impl::add_encoded(string_view x, bool is_path) {
...
@@ -96,6 +96,7 @@ void uri_impl::add_encoded(string_view x, bool is_path) {
str
+=
ch
;
str
+=
ch
;
break
;
break
;
}
}
// fall through
case
' '
:
case
' '
:
case
':'
:
case
':'
:
case
'?'
:
case
'?'
:
...
...
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