Project

General

Profile

Bug #1166 ยป table_insert_bug.C

Michael Vilsker, 02/14/2012 02:27 PM

 

#include <Wt/WApplication>
#include <Wt/WBreak>
#include <Wt/WContainerWidget>
#include <Wt/WLineEdit>
#include <Wt/WPushButton>
#include <Wt/WText>
#include <Wt/WString>
#include <Wt/WInPlaceEdit>
#include <Wt/WComboBox>
#include <Wt/WTable>

// c++0x only, for std::bind
// #include <functional>

using namespace Wt;

class HelloApplication : public WApplication
{
public:
HelloApplication(const WEnvironment& env);
};

HelloApplication::HelloApplication(const WEnvironment& env)
: WApplication(env)
{
WTable *table = new WTable(root());
table->insertRow(2);
}

WApplication *createApplication(const WEnvironment& env)
{
return new HelloApplication(env);
}

int main(int argc, char **argv)
{
return WRun(argc, argv, &createApplication);
}

    (1-1/1)