concurrencpp icon indicating copy to clipboard operation
concurrencpp copied to clipboard

fix build when compiling with Werror

Open hashem78 opened this issue 2 years ago • 0 comments

Compilation was failing on clang16 when compiling with Werror, specifically Wreorder-ctor, this makes sense because of initilization rules in C++, where the order of intialization matters.

m_thread_thread_start_callback & m_thread_terminated_callback are now initialized at the end of the initialization chain in timer_queue's constructor in accordance with the declaration of the header file.

hashem78 avatar Jan 15 '24 18:01 hashem78