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
a2f78b4d
Commit
a2f78b4d
authored
Apr 11, 2018
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix build on MSVC 32-bit
parent
bd7c3c96
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
libcaf_core/test/broadcast_downstream_manager.cpp
libcaf_core/test/broadcast_downstream_manager.cpp
+4
-4
No files found.
libcaf_core/test/broadcast_downstream_manager.cpp
View file @
a2f78b4d
...
@@ -94,13 +94,13 @@ public:
...
@@ -94,13 +94,13 @@ public:
paths
.
emplace_back
(
ptr
);
paths
.
emplace_back
(
ptr
);
}
}
long
credit_for
(
entity
&
x
)
{
size_t
credit_for
(
entity
&
x
)
{
auto
pred
=
[
&
](
outbound_path
*
ptr
)
{
auto
pred
=
[
&
](
outbound_path
*
ptr
)
{
return
ptr
->
hdl
==
&
x
;
return
ptr
->
hdl
==
&
x
;
};
};
auto
i
=
std
::
find_if
(
paths
.
begin
(),
paths
.
end
(),
pred
);
auto
i
=
std
::
find_if
(
paths
.
begin
(),
paths
.
end
(),
pred
);
CAF_REQUIRE
(
i
!=
paths
.
end
());
CAF_REQUIRE
(
i
!=
paths
.
end
());
return
(
*
i
)
->
open_credit
;
return
static_cast
<
size_t
>
((
*
i
)
->
open_credit
)
;
}
}
void
new_round
(
int
num
,
bool
force_emit
)
{
void
new_round
(
int
num
,
bool
force_emit
)
{
...
@@ -274,7 +274,7 @@ receive_checker<F> operator<<(receive_checker<F> xs, not_empty_t) {
...
@@ -274,7 +274,7 @@ receive_checker<F> operator<<(receive_checker<F> xs, not_empty_t) {
#define AFTER
#define AFTER
#define HAS ;
auto
CONCAT(amount, __LINE__) =
#define HAS ;
size_t
CONCAT(amount, __LINE__) =
#define CREDIT ;
#define CREDIT ;
...
@@ -299,7 +299,7 @@ receive_checker<F> operator<<(receive_checker<F> xs, not_empty_t) {
...
@@ -299,7 +299,7 @@ receive_checker<F> operator<<(receive_checker<F> xs, not_empty_t) {
#define FOR \
#define FOR \
struct CONCAT(for_helper_, __LINE__) { \
struct CONCAT(for_helper_, __LINE__) { \
entity& who; \
entity& who; \
long amount;
\
size_t amount;
\
void operator<<(entity& x) const { \
void operator<<(entity& x) const { \
CAF_CHECK_EQUAL(who.credit_for(x), amount); \
CAF_CHECK_EQUAL(who.credit_for(x), amount); \
} \
} \
...
...
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