Cannot compile CoordCache.h

2007-09-24 Thread Jean-Marc Lasgouttes
Here is what I get: In file included from ../../../../lyx-devel/src/BufferView.h:18, from ../../../../lyx-devel/src/frontends/controllers/ControlCommandBuffer.cpp:17: ../../../../lyx-devel/src/CoordCache.h: In member function `bool lyx::CoordCacheBaseT::covers(const T*, int,

Re: Cannot compile CoordCache.h

2007-09-24 Thread Abdelrazak Younes
Jean-Marc Lasgouttes wrote: Here is what I get: In file included from ../../../../lyx-devel/src/BufferView.h:18, from ../../../../lyx-devel/src/frontends/controllers/ControlCommandBuffer.cpp:17: ../../../../lyx-devel/src/CoordCache.h: In member function `bool

Re: Cannot compile CoordCache.h

2007-09-24 Thread Jean-Marc Lasgouttes
Abdelrazak Younes [EMAIL PROTECTED] writes: cache_type is defined just after, I guess your compiler doesn't see it. If I was a compiler expert, I'd say your compiler is broken ;-) Just replace cache_type to std::mapT const *, Geometry and it will compile. Or put the typedef definition at the

Re: Cannot compile CoordCache.h

2007-09-24 Thread Abdelrazak Younes
Jean-Marc Lasgouttes wrote: Abdelrazak Younes [EMAIL PROTECTED] writes: cache_type is defined just after, I guess your compiler doesn't see it. If I was a compiler expert, I'd say your compiler is broken ;-) Just replace cache_type to std::mapT const *, Geometry and it will compile. Or put the

Re: Cannot compile CoordCache.h

2007-09-24 Thread Jean-Marc Lasgouttes
Abdelrazak Younes [EMAIL PROTECTED] writes: Weird... maybe a missing header then? map should in principle contains everything required but could you try adding iterator? Did not work. This is gcc 3.4.1, BTW. JMarc

Re: Cannot compile CoordCache.h

2007-09-24 Thread Jürgen Spitzmüller
Jean-Marc Lasgouttes wrote: Did not work. This is gcc 3.4.1, BTW. Same here. This one at least makes it compile again: Index: src/CoordCache.h === --- src/CoordCache.h(Revision 20461) +++ src/CoordCache.h(Arbeitskopie) @@

Re: Cannot compile CoordCache.h

2007-09-24 Thread Abdelrazak Younes
Jürgen Spitzmüller wrote: Jean-Marc Lasgouttes wrote: Did not work. This is gcc 3.4.1, BTW. Same here. This one at least makes it compile again: Index: src/CoordCache.h === --- src/CoordCache.h(Revision 20461) +++

Re: Cannot compile CoordCache.h

2007-09-24 Thread Abdelrazak Younes
Jürgen Spitzmüller wrote: Jean-Marc Lasgouttes wrote: Did not work. This is gcc 3.4.1, BTW. Same here. This one at least makes it compile again: Index: src/CoordCache.h === --- src/CoordCache.h(Revision 20461) +++

Re: Cannot compile CoordCache.h

2007-09-24 Thread Georg Baum
Abdelrazak Younes wrote: Jürgen Spitzmüller wrote: Index: src/CoordCache.h === --- src/CoordCache.h(Revision 20461) +++ src/CoordCache.h(Arbeitskopie) @@ -108,8 +108,8 @@ bool covers(T const * thing, int x,

Re: Cannot compile CoordCache.h

2007-09-24 Thread Jürgen Spitzmüller
Georg Baum wrote: typename cache_type::const_iterator it ... This works. Index: src/CoordCache.h === --- src/CoordCache.h(Revision 20461) +++ src/CoordCache.h(Arbeitskopie) @@ -108,7 +108,7 @@ bool covers(T const *

Re: Cannot compile CoordCache.h

2007-09-24 Thread Bo Peng
typename cache_type::const_iterator it ... . In older versions of the standard an implicit typename was assumed, and I guess that your MSVC still allows this. Yes. typename is required by gcc. Bo

Re: Cannot compile CoordCache.h

2007-09-24 Thread Andre Poenitz
On Mon, Sep 24, 2007 at 04:22:47PM +0200, Jürgen Spitzmüller wrote: Jean-Marc Lasgouttes wrote: Did not work. This is gcc 3.4.1, BTW. Same here. This one at least makes it compile again: Index: src/CoordCache.h === ---

Re: Cannot compile CoordCache.h

2007-09-24 Thread Bo Peng
'typename' missing in the original version? Yes, and another one is still missing. I have just fixed it. Bo

Re: Cannot compile CoordCache.h

2007-09-24 Thread Andre Poenitz
On Mon, Sep 24, 2007 at 09:16:30PM +0200, Andre Poenitz wrote: On Mon, Sep 24, 2007 at 04:22:47PM +0200, Jürgen Spitzmüller wrote: Jean-Marc Lasgouttes wrote: Did not work. This is gcc 3.4.1, BTW. Same here. This one at least makes it compile again: Index: src/CoordCache.h

Re: Cannot compile CoordCache.h

2007-09-24 Thread Abdelrazak Younes
Georg Baum wrote: Abdelrazak Younes wrote: Jürgen Spitzmüller wrote: Index: src/CoordCache.h === --- src/CoordCache.h(Revision 20461) +++ src/CoordCache.h(Arbeitskopie) @@ -108,8 +108,8 @@ bool covers(T const *

Cannot compile CoordCache.h

2007-09-24 Thread Jean-Marc Lasgouttes
Here is what I get: In file included from ../../../../lyx-devel/src/BufferView.h:18, from ../../../../lyx-devel/src/frontends/controllers/ControlCommandBuffer.cpp:17: ../../../../lyx-devel/src/CoordCache.h: In member function `bool lyx::CoordCacheBase::covers(const T*, int,

Re: Cannot compile CoordCache.h

2007-09-24 Thread Abdelrazak Younes
Jean-Marc Lasgouttes wrote: Here is what I get: In file included from ../../../../lyx-devel/src/BufferView.h:18, from ../../../../lyx-devel/src/frontends/controllers/ControlCommandBuffer.cpp:17: ../../../../lyx-devel/src/CoordCache.h: In member function `bool

Re: Cannot compile CoordCache.h

2007-09-24 Thread Jean-Marc Lasgouttes
Abdelrazak Younes <[EMAIL PROTECTED]> writes: > cache_type is defined just after, I guess your compiler doesn't see > it. If I was a compiler expert, I'd say your compiler is broken ;-) > Just replace cache_type to std::map and it will > compile. Or put the typedef definition at the top of the

Re: Cannot compile CoordCache.h

2007-09-24 Thread Abdelrazak Younes
Jean-Marc Lasgouttes wrote: Abdelrazak Younes <[EMAIL PROTECTED]> writes: cache_type is defined just after, I guess your compiler doesn't see it. If I was a compiler expert, I'd say your compiler is broken ;-) Just replace cache_type to std::map and it will compile. Or put the typedef

Re: Cannot compile CoordCache.h

2007-09-24 Thread Jean-Marc Lasgouttes
Abdelrazak Younes <[EMAIL PROTECTED]> writes: > Weird... maybe a missing header then? should in principle > contains everything required but could you try adding ? Did not work. This is gcc 3.4.1, BTW. JMarc

Re: Cannot compile CoordCache.h

2007-09-24 Thread Jürgen Spitzmüller
Jean-Marc Lasgouttes wrote: > Did not work. This is gcc 3.4.1, BTW. Same here. This one at least makes it compile again: Index: src/CoordCache.h === --- src/CoordCache.h(Revision 20461) +++ src/CoordCache.h(Arbeitskopie) @@

Re: Cannot compile CoordCache.h

2007-09-24 Thread Abdelrazak Younes
Jürgen Spitzmüller wrote: Jean-Marc Lasgouttes wrote: Did not work. This is gcc 3.4.1, BTW. Same here. This one at least makes it compile again: Index: src/CoordCache.h === --- src/CoordCache.h(Revision 20461) +++

Re: Cannot compile CoordCache.h

2007-09-24 Thread Abdelrazak Younes
Jürgen Spitzmüller wrote: Jean-Marc Lasgouttes wrote: Did not work. This is gcc 3.4.1, BTW. Same here. This one at least makes it compile again: Index: src/CoordCache.h === --- src/CoordCache.h(Revision 20461) +++

Re: Cannot compile CoordCache.h

2007-09-24 Thread Georg Baum
Abdelrazak Younes wrote: > Jürgen Spitzmüller wrote: >> Index: src/CoordCache.h >> === >> --- src/CoordCache.h(Revision 20461) >> +++ src/CoordCache.h(Arbeitskopie) >> @@ -108,8 +108,8 @@ >> >> bool covers(T const *

Re: Cannot compile CoordCache.h

2007-09-24 Thread Jürgen Spitzmüller
Georg Baum wrote: > typename cache_type::const_iterator it ... This works. Index: src/CoordCache.h === --- src/CoordCache.h(Revision 20461) +++ src/CoordCache.h(Arbeitskopie) @@ -108,7 +108,7 @@ bool covers(T const

Re: Cannot compile CoordCache.h

2007-09-24 Thread Bo Peng
> typename cache_type::const_iterator it ... > > . In older versions of the standard an implicit typename was assumed, and I > guess that your MSVC still allows this. Yes. typename is required by gcc. Bo

Re: Cannot compile CoordCache.h

2007-09-24 Thread Andre Poenitz
On Mon, Sep 24, 2007 at 04:22:47PM +0200, Jürgen Spitzmüller wrote: > Jean-Marc Lasgouttes wrote: > > Did not work. This is gcc 3.4.1, BTW. > > Same here. This one at least makes it compile again: > > Index: src/CoordCache.h > === >

Re: Cannot compile CoordCache.h

2007-09-24 Thread Bo Peng
> 'typename' missing in the original version? Yes, and another one is still missing. I have just fixed it. Bo

Re: Cannot compile CoordCache.h

2007-09-24 Thread Andre Poenitz
On Mon, Sep 24, 2007 at 09:16:30PM +0200, Andre Poenitz wrote: > On Mon, Sep 24, 2007 at 04:22:47PM +0200, Jürgen Spitzmüller wrote: > > Jean-Marc Lasgouttes wrote: > > > Did not work. This is gcc 3.4.1, BTW. > > > > Same here. This one at least makes it compile again: > > > > Index:

Re: Cannot compile CoordCache.h

2007-09-24 Thread Abdelrazak Younes
Georg Baum wrote: Abdelrazak Younes wrote: Jürgen Spitzmüller wrote: Index: src/CoordCache.h === --- src/CoordCache.h(Revision 20461) +++ src/CoordCache.h(Arbeitskopie) @@ -108,8 +108,8 @@ bool covers(T const *