Actions
Support #13941
openWt4.11.4 gcc11.5 compile error: void value not ignored as it ought to be when trying to addWidget from a WTemplate removeWidget
Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
08/23/2025
Due date:
% Done:
0%
Estimated time:
Description
How should a widget be moved around if it should be bound to a WTemplate or root()?
Wt::Auth::AuthWidget *m_authWidget = root()->addWidget(std::make_uniqueWt::Auth::AuthWidget(Login::Session::auth(), m_session.users(), m_session.login()));
auto authWidget = root()->removeWidget(m_authWidget);
m_authWidget = template->bindWidget("auth-logout", std::move(authWidget));
auto authWidget = template->removeWidget("auth-logout");
m_authWidget =root()->addWidget(authWidget); ===>>> error: void value not ignored as it ought to be
Actions