Commit a549eb38 authored by Matthias Vallentin's avatar Matthias Vallentin

Enable commented safety check on Clang/Linux

parent 7f9a0ca7
...@@ -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");
#endif #else
// 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)...);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment