Re: [Cppcms-users] Custom form rendering and dynamic widgets
Brought to you by:
artyom-beilis
From: <ju...@ne...> - 2010-08-31 10:16:46
|
> You can use: > > <% foreach w as cppcms::form::iterator in *form %> > > BTW `as foo` is required only for MSVC as gcc and intel have > a construct typeof, so you can just use > > <% foreach w in *form %> > I tried that already, but gcc exits with the following errors (not different of the errors I get when I specify form instead of *form): stdconfig.tmpl: In member function virtual void stdconfig::stdconfig::get_content(): stdconfig.tmpl:11: error: class booster::shared_ptr<iweb2::content::StdConfigForm> has no member named begin stdconfig.tmpl:12: error: invalid type in declaration before = token stdconfig.tmpl:12: error: class booster::shared_ptr<iweb2::content::StdConfigForm> has no member named begin stdconfig.tmpl:12: error: class booster::shared_ptr<iweb2::content::StdConfigForm> has no member named end stdconfig.tmpl:11: error: invalid type argument of unary * stdconfig.tmpl:11: error: invalid type in declaration before = token stdconfig.tmpl:11: error: invalid type argument of unary * Any solution to this? Up to now, the only solution that worked was, to manually change any appearance of form.begin() and form.end() to form->begin() and form->end(). Thanks, Julian |