Re: [Cppcms-users] Custom form rendering and dynamic widgets
Brought to you by:
artyom-beilis
From: Artyom <art...@ya...> - 2010-08-31 10:54:35
|
Hi, Ok, I see, you are right, this does not work as cppcms_tmpl_cc generates: *foo.bar.begin() When it should (*foo.bar).begin() Fixed in svn 1385, take latest revision. Artyom P.S.: Next time generated code sample that fails would be helpful ----- Original Message ---- > From: Julian Pietron <ju...@wh...> > To: cpp...@li... > Sent: Tue, August 31, 2010 1:01:25 PM > Subject: Re: [Cppcms-users] Custom form rendering and dynamic widgets > > > > 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 > > ------------------------------------------------------------------------------ > This SF.net Dev2Dev email is sponsored by: > > Show off your parallel programming skills. > Enter the Intel(R) Threading Challenge 2010. > http://p.sf.net/sfu/intel-thread-sfd > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > |