Sorry it had nothing to do with static member initialization.
I removed an infinite loop in my code and LyX starts without
crash.

[EMAIL PROTECTED] (Lars Gullik Bj~nnes) wrote:

> No. But we should perhaps do it with traits instead?
> 
> struct unix_traits {
>         static)
>         void init () { ... };
> };
> 
> 
> template<class Trait>
> class OS {
> public:
>         void init() { Trait::init(); }=20
> };
> 
> 
> OS<unix_traits> os;

You mean an instance of the class must be constructed?
My former approach used only static member functions (i.e.
those who do not know 'this').  So the class was never
constructed.

Regards,
                SMiyata

Reply via email to