> Instead of using a std::list, I don't declare any checkbox widgets in the form
>
> struct, i.e. I don't declare them in the header file.
> Instead, I try to introduce new form elements in the .cpp file by declaring a
> new widget in my content's form element, like this:
> cppcms::widgets::checkbox c.form.check = cppcms::widgets::checkbox();
> where c.form is the base form, but I get the compile error:
> error: expected initializer before ‘.’ token
>
See, C++ is not dynamically typed language, you can't add member
to structure dynamically.
Artyom
|