[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    [PyQt] Re: Can't declare template attribute with SIP
From:       "Arve Knudsen" <arve.knudsen () gmail ! com>
Date:       2008-08-28 7:29:27
Message-ID: a0d6258d0808280029k39e07debj354ad4f15c2393 () mail ! gmail ! com
[Download RAW message or body]

Phil: Are you able to fix this problem? Also, I've found out that
while SIP allows me to declare a member variable of a concrete type,
it isn't exposed in the Python wrapper.

Arve

On Mon, Aug 25, 2008 at 11:58 AM, Arve Knudsen <arve.knudsen@gmail.com> wrote:
> I have a class template (a struct really) which exposes an attribute
> variable, but it doesn't appear SIP (version 4.7.8-snapshot-20080817)
> supports this. Example:
>
> template<T>
> class Value
> {
> public:
>    T value;
> };
>
> SIP reacts by saying that "T is undefined". Probably an omission in
> SIP, since a corresponding getValue works? Also, specifying a concrete
> type for the attribute works.
>
> Arve
>
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic