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
a549eb38
Commit
a549eb38
authored
Oct 25, 2016
by
Matthias Vallentin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable commented safety check on Clang/Linux
parent
7f9a0ca7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
libcaf_core/caf/actor_storage.hpp
libcaf_core/caf/actor_storage.hpp
+2
-3
No files found.
libcaf_core/caf/actor_storage.hpp
View file @
a549eb38
...
@@ -55,16 +55,15 @@ public:
...
@@ -55,16 +55,15 @@ public:
// 3) make sure we can obtain a data pointer by jumping one cache line
// 3) make sure we can obtain a data pointer by jumping one cache line
static_assert
(
offsetof
(
actor_storage
,
data
)
==
CAF_CACHE_LINE_SIZE
,
static_assert
(
offsetof
(
actor_storage
,
data
)
==
CAF_CACHE_LINE_SIZE
,
"data is not at cache line size boundary"
);
"data is not at cache line size boundary"
);
#e
ndif
#e
lse
// 4) make sure static_cast and reinterpret_cast
// 4) make sure static_cast and reinterpret_cast
// between T* and abstract_actor* are identical
// between T* and abstract_actor* are identical
/*
constexpr
abstract_actor
*
dummy
=
nullptr
;
constexpr
abstract_actor
*
dummy
=
nullptr
;
constexpr
T
*
derived_dummy
=
static_cast
<
T
*>
(
dummy
);
constexpr
T
*
derived_dummy
=
static_cast
<
T
*>
(
dummy
);
static_assert
(
derived_dummy
==
nullptr
,
static_assert
(
derived_dummy
==
nullptr
,
"actor subtype has illegal memory alignment "
"actor subtype has illegal memory alignment "
"(probably due to virtual inheritance)"
);
"(probably due to virtual inheritance)"
);
*/
#endif
// construct data member
// construct data member
new
(
&
data
)
T
(
std
::
forward
<
Us
>
(
zs
)...);
new
(
&
data
)
T
(
std
::
forward
<
Us
>
(
zs
)...);
}
}
...
...
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