Hi,

Intresting idea, and it would be nice if it worked. However there are  
a few problems with it,

Quoting "Michael D. Adams" <[EMAIL PROTECTED]>:

> template<char* name> class csNullEventHandlerNames0 { ... };
> template<char* name, typename T1> class csNullEventHandlerNames1 :
> public T1 { ... };
>
> These would be used as follows.
>
> class csFoo : public
> csNullEventHanderNames0<"crystalspace.module.name"> { ... };
> class csBar : public
> csNullEventHanderNames1<"crystalspace.module.name"> { ... };

Unfortunatly this is not legal C++. You cannot specialize a char*  
template parameter with a string literal. This is the only reason we  
still use a macro for SCF_INTERFACE and SCF_FACTORY.

Given that this part breaks down I don't see how the rest of the  
proposal can work properly, unfortunatly.

-Marten




_______________________________________________
Crystal-main mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/crystal-main
Unsubscribe: mailto:[EMAIL PROTECTED]

Reply via email to