[PyQt] Support for std::?
srhaque at theiet.org
Tue Jan 10 14:29:33 GMT 2017
Sorry, not sure how the word "syntax" crept in there, I intended to
just say "errors". But I'm not sure I follow your second sentence:
there is no SIP definition of std::exception, so the "lack of a
definition" part is not surprising. Are you saying that just adding a
%MappedType will suppress the "or the type"? I tried both:
but both resulted in "sip: tmp/AkonadiCore/Exception.sip:62: A class,
exception, namespace or mapped type has already been defined with the
same name". What have I missed?
On 10 January 2017 at 13:54, Phil Thompson <phil at riverbankcomputing.com> wrote:
>> On 10 Jan 2017, at 1:41 pm, Shaheed Haque <srhaque at theiet.org> wrote:
>> For the implementation, that make sense. What about the syntax errors
>> the SIP compiler reports, for example:
>> ERROR: sip: std::exception has not been defined while processing
>> Is there a way to suppress those?
> Why is that a syntax error? It's complaining about the lack of a definition or the type.
>> On 10 January 2017 at 10:00, Phil Thompson <phil at riverbankcomputing.com> wrote:
>>> On 10 Jan 2017, at 9:44 am, Shaheed Haque <srhaque at theiet.org> wrote:
>>>> I have some .h files for which the generated .sip contains fragments
>>>> which depend on the std namespace like this:
>>>> tmp/AkonadiCore/Exception.sip: class Exception: std::exception
>>>> tmp/gpgme++/exception.sip: const std::string &message() const;
>>>> tmp/gpgme++/error.sip: std::ostream &operator<<(int &os, const
>>>> GpgME::Error &err);
>>>> How might I approach these? Ideas welcome...
>>> You have to provide %MappedType implementations of them.
More information about the PyQt