Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Problems with parser



I miss-typed, the link you want is
http://download.eclipse.org/tools/cdt/builds/2.0.1

-Andrew

cdt-dev-admin@xxxxxxxxxxx wrote on 08/24/2004 01:21:18 PM:

>
>
>
>
> Unfortunately, at the moment, the default parameters are only considered
at
> instantiation time if required.
>
> The plan when I get time to work on templates, is basically to assume
that
> things are compilable and to make a kind of shadow symbol to represent
> things we can't know until instatiation.  This will at least allow us to
> parse these kinds of declarations.  We would just report errors at
> instantiation if things don't turn out as hoped.
>
> I'll have to think on this a little, but you have given me the idea that
> for something like content assist, we could use the default parameters to
> provide possible completion suggestions when there otherwise would have
> been none.
>
> I don't think there's an update site for 2.0.1 builds, but you can
download
> zips from http://download.eclipse.org/tools/cdt/builds/2.1.0
>
> -Andrew
>
> cdt-dev-admin@xxxxxxxxxxx wrote on 08/24/2004 11:24:00 AM:
>
> > Andrew Niefer wrote:
> >
> >
> > > I did fix a defect related to classes inheriting from template
> parameters
> > > (71410), the fix is in head and the 2.0.1 stream.
> > >
> > > In general we have problems  with code patterns that contain
> assumptions
> > > about what a template parameter is before we actually instantiate the
> > > template (60307).
> > >       template < class T > class B {
> > >           typedef typename T::myInt int_type;
> > >       };
> > > This compiles as long as you instantiate the template with something
> that
> > > contains a myInt.
> >
> >
> > Granted, but what do you do in case a default parameter is provided?
> >
> > I have lots of templates following some sort of policy based design. I
> > have classes which inherit from a class provided from a template
> > parameter. I do have defaults for these parameters, but to me it looks
> > like cdt can't / won't take that into account when parsing these
> templates.
> >
> > I know, its impossible to know what to do in the source of this "upper"
> > class since you cannot know what it will inherit from when its
> > instantiated, but I do provide defaults ..
> >
> >
> > Aw, I'll give this 2.0.1 version a try, is there a way to get it
through
> >   the online update?
> >
> > kind regards Philip
> > _______________________________________________
> > cdt-dev mailing list
> > cdt-dev@xxxxxxxxxxx
> > http://dev.eclipse.org/mailman/listinfo/cdt-dev
>
> _______________________________________________
> cdt-dev mailing list
> cdt-dev@xxxxxxxxxxx
> http://dev.eclipse.org/mailman/listinfo/cdt-dev



Back to the top