Wt 4.0.1

  • Posted by Roel
  • Tuesday, November 21, 2017 @ 11:12

We’ve released Wt 4.0.1.

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!");
Tags:
4 comments
  • Posted by anonymous
  • 7 years ago
Missing :
#include <cmath>
on DboTest.c for compilation.
  • Posted by anonymous
  • 7 years ago
to resolve this error :
error: ‘isnan’ was not declared in this scope
BOOST_REQUIRE((isnan(d) && isnan(a->d)) || a->d == d);
  • Posted by anonymous
  • 7 years ago
Sorry....
error: ‘isnan’ is not a member of ‘std’
BOOST_REQUIRE((std::isnan(d) && std::isnan(a->d)) || a->d == d);
  • Posted by Roel
  • 7 years ago
Yes, we noticed a little too late. We decided to quickly create a 4.0.2 release which makes sure it builds correctly again. My mistake. I didn't think much of recent changes, and they compiled correctly on my Ubuntu 16.04 machine, so I mistakenly thought they wouldn't break anything.

Contact us for more information
or a personalised quotation