Project

General

Profile

Actions

Support #13941

open

Wt4.11.4 gcc11.5 compile error: void value not ignored as it ought to be when trying to addWidget from a WTemplate removeWidget

Added by robs j 11 days ago. Updated 9 days ago.

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 #1

Updated by robs j 9 days ago

m_authWidget =root()->addWidget(std::move(authWidget));

Actions

Also available in: Atom PDF