On Mon, Aug 27, 2001 at 08:21:50AM +0200, Andre Poenitz wrote:

> I'd say every instance of the function should have its own static. How else
> could it work when the type of 'isBuilt' depents on the template parameter?

I have no idea - let me put it this way; making it a member fixes the problem.

The symptoms were such that the only explanation were that is was shared. Maybe
it's a gcc 3.0 bug.

regards
john

p.s. another controller patch :


Index: GUI.h
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/frontends/controllers/GUI.h,v
retrieving revision 1.21
diff -u -r1.21 GUI.h
--- GUI.h       2001/08/09 15:08:06     1.21
+++ GUI.h       2001/08/27 15:07:33
@@ -159,11 +159,11 @@
 
 template <class GUIview, class GUIbc>
 class GUIExternal :
-       public GUI<ControlExternal, GUIview, OkCancelReadOnlyPolicy, GUIbc> {
+       public GUI<ControlExternal, GUIview, OkApplyCancelReadOnlyPolicy, GUIbc> {
 public:
        ///
        GUIExternal(LyXView & lv, Dialogs & d)
-               : GUI<ControlExternal, GUIview, OkCancelReadOnlyPolicy, GUIbc>(lv, d) 
{}
+               : GUI<ControlExternal, GUIview, OkApplyCancelReadOnlyPolicy, 
+GUIbc>(lv, d) {}
 };
 

Reply via email to