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
528285ba
Commit
528285ba
authored
Jul 27, 2015
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix compiler error on older Clang releases
parent
28fe23e7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
9 deletions
+4
-9
libcaf_io/caf/io/publish.hpp
libcaf_io/caf/io/publish.hpp
+4
-9
No files found.
libcaf_io/caf/io/publish.hpp
View file @
528285ba
...
@@ -44,20 +44,15 @@ uint16_t publish_impl(uint16_t port, actor_addr whom,
...
@@ -44,20 +44,15 @@ uint16_t publish_impl(uint16_t port, actor_addr whom,
/// @throws bind_failure
/// @throws bind_failure
inline
uint16_t
publish
(
caf
::
actor
whom
,
uint16_t
port
,
inline
uint16_t
publish
(
caf
::
actor
whom
,
uint16_t
port
,
const
char
*
in
=
nullptr
,
bool
reuse_addr
=
false
)
{
const
char
*
in
=
nullptr
,
bool
reuse_addr
=
false
)
{
if
(
!
whom
)
{
return
!
whom
?
0
:
publish_impl
(
port
,
whom
->
address
(),
return
0
;
std
::
set
<
std
::
string
>
{},
in
,
reuse_addr
);
}
return
publish_impl
(
port
,
whom
->
address
(),
{},
in
,
reuse_addr
);
}
}
/// @copydoc publish(actor,uint16_t,const char*)
/// @copydoc publish(actor,uint16_t,const char*)
template
<
class
...
Sigs
>
template
<
class
...
Sigs
>
uint16_t
typed_publish
(
typed_actor
<
Sigs
...
>
whom
,
uint16_t
port
,
uint16_t
typed_publish
(
typed_actor
<
Sigs
...
>
whom
,
uint16_t
port
,
const
char
*
in
=
nullptr
,
bool
reuse_addr
=
false
)
{
const
char
*
in
=
nullptr
,
bool
reuse_addr
=
false
)
{
if
(
!
whom
)
{
return
!
whom
?
0
:
publish_impl
(
port
,
whom
->
address
(),
whom
.
message_types
(),
return
0
;
}
return
publish_impl
(
port
,
whom
->
address
(),
whom
.
message_types
(),
in
,
reuse_addr
);
in
,
reuse_addr
);
}
}
...
...
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