You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In AsyncWebSocket.h there is a forward declaration of AsyncWebSocketControl. Later in the header this declaration is referenced in defining AsyncWebSocketClient:
class AsyncWebSocketControl; //Defined in AsyncWebSocket.cpp
...
class AsyncWebSocketClient{
std::deque<AsyncWebSocketControl> _controlQueue;
...
}
However, as far as I can tell std::deque requires a complete type definition, leading to this error:
error: invalid use of incomplete type 'std::deque<AsyncWebSocketControl>
I know C++17 allows certain containers to use incomplete types in declarations, but as far as I could find, std::deque is not one of them, I believe this branch is trying to limit itself to C++11 features
Has anyone else ran into this? A quick fix is to move the full declaration of AsyncWebSocketControl to the header file, but there are many commits after the commit that introduced the usage std::deque, some I'm wondering if it could be something with my environment or imports
In
AsyncWebSocket.h
there is a forward declaration ofAsyncWebSocketControl
. Later in the header this declaration is referenced in definingAsyncWebSocketClient
:However, as far as I can tell
std::deque
requires a complete type definition, leading to this error:I know C++17 allows certain containers to use incomplete types in declarations, but as far as I could find,
std::deque
is not one of them, I believe this branch is trying to limit itself to C++11 featuresHas anyone else ran into this? A quick fix is to move the full declaration of
AsyncWebSocketControl
to the header file, but there are many commits after the commit that introduced the usagestd::deque
, some I'm wondering if it could be something with my environment or importsFull logs, but it's mostly repeating the same error
The text was updated successfully, but these errors were encountered: