Commit 8dcadde2 authored by Dominik Charousset's avatar Dominik Charousset

Create size_t actor IDs to fix 32-bit builds

Generating 64-bit actor IDs does not work on 32-bit Clang. While this could
cause to overflow actor IDs, it is unlikely to have that 2^32 actors on such a
system anyway due to memory constraints.
parent 1191e362
......@@ -23,6 +23,7 @@
#include <atomic>
#include <string>
#include <memory>
#include <cstddef>
#include <functional>
#include "caf/fwd.hpp"
......@@ -419,7 +420,7 @@ private:
return ptr;
}
std::atomic<actor_id> ids_;
std::atomic<size_t> ids_;
uniform_type_info_map types_;
node_id node_;
caf::logger logger_;
......@@ -436,4 +437,4 @@ private:
} // namespace caf
#endif //CAF_ACTOR_SYSTEM_HPP
#endif // CAF_ACTOR_SYSTEM_HPP
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