← Back to team overview

dolfin team mailing list archive

Re: Parameter.h

 

On Fri, 2006-03-24 at 14:20 -0600, Anders Logg wrote:
> Hmm... 
> 
> I don't like these errors. I don't remember why I put in the
> "typename" at all, but probably to get around some compiler errors
> that gcc gave me previously. What happens if you just remove the word
> "typename"?
> 
still doesn't work. The class Iterator looks funny to me. The class is
called Iterator, and has member functions which return the address of an
Iterator.

Garth 

> PArray.h will be removed as soon as we replace the mesh backend with
> Sieve (whenever that may be, we're still waiting for Sieve but it
> should come soon).
> 
> /Anders
> 
> 
> On Fri, Mar 24, 2006 at 06:56:35PM +0100, Garth N. Wells wrote:
> > That works. I did that but wasn't sure if it had any consequences.
> > 
> > The only remaining problem I have that I haven't figured out yet is in
> > PArray.h. The error messages are below.
> > 
> > I picked up a whole bunch of other small errors, but it might take me a
> > few days to get them all checked in.
> > 
> > Garth
> > 
> > ./../../src/kernel/common/dolfin/PArray.h(445): error: overloaded
> > function "dolfin::PArray<T>::Iterator::Iterator" is not a type name
> >     template <class T> typename PArray<T>::Iterator::Iterator&
> >                                 ^
> > 
> > ../../../src/kernel/common/dolfin/PArray.h(446): error: declaration is
> > incompatible with "dolfin::PArray<T>::Iterator
> > &dolfin::PArray<T>::Iterator::operator++()" (declared at line 147)
> >     PArray<T>::Iterator::operator++()
> >                          ^
> > 
> > ../../../src/kernel/common/dolfin/PArray.h(460): error: overloaded
> > function "dolfin::PArray<T>::Iterator::Iterator" is not a type name
> >     template <class T> typename PArray<T>::Iterator::Iterator&
> >                                 ^
> > 
> > ../../../src/kernel/common/dolfin/PArray.h(461): error: declaration is
> > incompatible with "dolfin::PArray<T>::Iterator
> > &dolfin::PArray<T>::Iterator::operator--()" (declared at line 149)
> >     PArray<T>::Iterator::operator--()
> >                          ^
> > 
> > 
> > On Fri, 2006-03-24 at 11:03 -0600, Anders Logg wrote:
> > > Does it work if you remove the dolfin:: in Parameter.h? I don't know
> > > why it's there. I just pushed a changeset where this is removed. Check
> > > if that works.
> > > 
> > > /Anders
> > > 
> > > On Fri, Mar 24, 2006 at 05:58:18PM +0100, Garth N. Wells wrote:
> > > > Any ideas what's wrong here in Parameter.h? I'm testing the Intel C++
> > > > compiler.
> > > > 
> > > > Garth
> > > > 
> > > > ../../../src/kernel/parameter/dolfin/Parameter.h(89): error: no instance
> > > > of overloaded function "dolfin::operator<<" matches the specified type
> > > >       friend LogStream& dolfin::operator<<(LogStream& stream, const
> > > > Parameter& parameter);
> > > > 
> > > > 
> > > > 
> > > > 
> > > > _______________________________________________
> > > > DOLFIN-dev mailing list
> > > > DOLFIN-dev@xxxxxxxxxx
> > > > http://www.fenics.org/cgi-bin/mailman/listinfo/dolfin-dev
> > > > 
> > 
> > 
> > 
> > _______________________________________________
> > DOLFIN-dev mailing list
> > DOLFIN-dev@xxxxxxxxxx
> > http://www.fenics.org/cgi-bin/mailman/listinfo/dolfin-dev
> > 





Follow ups

References