This site is no longer active and is available for archival purposes only. Registration and login is disabled.

template members in eVC3


template members in eVC3

Postby v0101 » Jul 11, 2003 @ 12:04am

v0101
pm Insider
 
Posts: 147
Joined: Feb 1, 2002 @ 12:04am


Postby Velo » Jul 11, 2003 @ 8:05am

User avatar
Velo
pm Member
 
Posts: 21
Joined: Feb 13, 2003 @ 5:36am
Location: alt.comp.lang.c++.nazi


Postby angedelamort » Jul 11, 2003 @ 3:52pm

User avatar
angedelamort
pm Member
 
Posts: 304
Joined: Mar 7, 2002 @ 11:16pm
Location: Montreal, Quebec


Postby v0101 » Jul 11, 2003 @ 7:01pm

v0101
pm Insider
 
Posts: 147
Joined: Feb 1, 2002 @ 12:04am


Postby Pejo Software - Per » Jul 12, 2003 @ 12:15am

User avatar
Pejo Software - Per
pm Insider
 
Posts: 343
Joined: Apr 25, 2002 @ 1:00pm
Location: Mölndal, Sweden


Postby Guest » Jul 12, 2003 @ 12:41am

Thank you so much PejoSoftware! It works perfectly now on both compilers.

I got my syntax in my first post from a book called "C++ Template: The Complete Guide" by Vandevoorde and Josuttis.

By the way, you can do this
list<vector<int>>
you just need spaces between vector and list
list< vector<int> >
Guest
 


Postby Pejo Software - Per » Jul 12, 2003 @ 12:53am

User avatar
Pejo Software - Per
pm Insider
 
Posts: 343
Joined: Apr 25, 2002 @ 1:00pm
Location: Mölndal, Sweden


Postby Kzinti » Jul 12, 2003 @ 1:32am

Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Postby Pejo Software - Per » Jul 12, 2003 @ 10:13am

User avatar
Pejo Software - Per
pm Insider
 
Posts: 343
Joined: Apr 25, 2002 @ 1:00pm
Location: Mölndal, Sweden


Postby damian » Jul 13, 2003 @ 3:53am

damian
pm Insider
 
Posts: 3960
Joined: Sep 3, 2002 @ 7:59pm
Location: Acton, MA (home), NYC (school)


Postby Kzinti » Jul 13, 2003 @ 4:44am

The holy standard specifies that parsing should eat as many characters as possible when generating tokens. "<" is parsed as a "<" token. ">>" is parsed as a ">>" token.

Later on, the sementic analyser will differentiate "<" used in a template syntax from an operator "<". It can do so using the context.

When the sementic analyser see ">>" it is already too late. ">>" will then be interpreted as an operator as there is no other possibility. The sementic phase is not allowed to split the token into ">" + ">".

Any compiler that doesn't work that way is not standard compliant. It is a really known "problem", just live with it.
Kzinti
pm Member
 
Posts: 3238
Joined: Jan 13, 2002 @ 5:23am


Return to Windows Mobile


Sort


Forum Description

A discussion forum for mobile device developers on the Windows Mobile platform. Any platform specific topics are welcome.

Moderators:

Dan East, sponge, Digby, David Horn, Kevin Gelso, RICoder

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron