duckstax / actor-zeta

Library that provides an actor style message-passing programming model (in C++).
BSD 3-Clause "New" or "Revised" License
64 stars 9 forks source link

Remove default ctors for actor_zeta::base::message and actor_zeta::detail::rtt (message body) #118

Open GremSnoort opened 2 years ago

GremSnoort commented 2 years ago

actor_zeta::detail::single_reader_queue has a default ctor: [references develop] https://github.com/duckstax/actor-zeta/blob/develop/header/actor-zeta/detail/single_reader_queue.hpp#L127-L130 single_reader_queue() : head_(nullptr) { stack_ = stack_empty_dummy(); } and actor_zeta::detail::intrusive_partitioned_list has a default ctor: https://github.com/duckstax/actor-zeta/blob/develop/header/actor-zeta/detail/intrusive_partitioned_list.hpp#L79-L84 `intrusive_partitioned_list() {

head_.next = &separator_;

separator_.prev = &head_;

separator_.next = &tail_;

tail_.prev = &separator_;

}` and also has private section: https://github.com/duckstax/actor-zeta/blob/develop/header/actor-zeta/detail/intrusive_partitioned_list.hpp#L178-L182 with plain non-pointer type https://github.com/duckstax/actor-zeta/blob/develop/header/actor-zeta/detail/intrusive_partitioned_list.hpp#L17 all of these block removing default ctors in message and rtt (message body)