auto text = root()->addWidget(std::make_unique<Wt::WText>("Hello!"));
We’ve released a first release candidate for Wt 4.0.1.
Download the source code (wt-4.0.1-rc1.tar.gz) here, you can read the full release notes here.
Because this is a rather small release, this will likely be the only release candidate. This release mostly patches up a few bugs. We’ve also added some small new features, and one more interesting one. We’ve thought about adding it in 4.0.0 but it didn’t quite make the cut. Now, after Peter Sommerlad mentioned it again after my CppCon talk, we had to add it!
Because it was a bit verbose to write:
auto text = root()->addWidget(std::make_unique<Wt::WText>("Hello!"));
We’ve added WContainerWidget::addNew(), WContainerWidget::insertNew(), and WTemplate::bindNew(), so you can shorten it like this:
auto text = root()->addNew<Wt::WText>("Hello!");
Binary builds for Windows are available on the GitHub releases page.