2010/11/29 Jan Köster <[email protected]>:
> why can't I access a collection like a vector ?
>
> /*Problem here*/
> Wt::WString getTitle(int id){
> return Title[id];
> }
Don't you want to write:
Wt::WString getTitle()
{
return Title;
}
> /* what could be wrong ?*/
> typedef Wt::Dbo::collection<Wt::Dbo::ptr<Posts>> ViewPostings;
You need to write an extra space between the '>>':
typedef Wt::Dbo::collection<Wt::Dbo::ptr<Posts> > ViewPostings;
That's C++. In C++0x, you don't need to do this anymore.
With these changes, your code compiles.
BR,
Wim.
------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest