Build fails on GCC 13.3.0 with error: invalid use of incomplete type ‘class Disruptor::ISequence’ in PhasedBackoffWaitStrategy.cpp
Environment
- OS: Linux Mint (Ubuntu-based)
- Compiler: GCC 13
- Boost: installed via system package (libboost-all-dev)
Following is the error message:
/home/user/Disruptor-cpp/Disruptor/PhasedBackoffWaitStrategy.cpp:57:38:
error: invalid use of incomplete type ‘class Disruptor::ISequence’
57 | if ((availableSequence = dependentSequence.value()) >= sequence)
README specifies GCC 5.0 as the minimum supported version. This appears to be caused by stricter incomplete-type enforcement in newer GCC versions. The fix is to #include "ISequence.h" in PhasedBackoffWaitStrategy.cpp
Build fails on GCC 13.3.0 with
error: invalid use of incomplete type ‘class Disruptor::ISequence’inPhasedBackoffWaitStrategy.cppEnvironment
Following is the error message:
README specifies GCC 5.0 as the minimum supported version. This appears to be caused by stricter incomplete-type enforcement in newer GCC versions. The fix is to
#include "ISequence.h"inPhasedBackoffWaitStrategy.cpp