Hi, On Wed, 2009-02-04 at 09:35 +0100, Marcus Lindblom wrote: > Carsten Neumann wrote: > > > hm, seems like the MS compiler generates code for member functions of a > > class template even when they are not used. > > I checked in a hack to work around that, please try r1716, sorry for the > > inconvenience. > > > > @Gerrit: do you have a better idea how to make the compiler not > > instantiate the member function? I always thought that was one of the > > nice things about class templates, its members are allowed to do > > nonsense as long as you don't call them? > > That's how it is, even on Windoze. :)
that should have been, 'only on Windoze' ;-). Well the nonsense has to make syntactic sense, so complete nonsense is not covered and the 'even' statement would be true again ;-) > It might be that the function is being referenced somehow anyway, due to > code using undefined behaviour, differing compiler interpretations of > vague or overly-permissive wording the standard, or just a compiler bug. nope, the standard is quite clear as to when a definition has to be instantiated. In general they must only be instantiated (implicitly) when they are referenced in a context that require them to exist. And there definitely is no context anywhere where this function is required to exist in that form, otherwise proper compilers would complain. So it is one of those $%^&#...@#$@$...@$%%@ MS compiler problems again. kind regards gerrit ------------------------------------------------------------------------------ Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com _______________________________________________ Opensg-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensg-users
