You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Jimmy Jones (JIRA)" <ji...@apache.org> on 2012/11/24 20:48:57 UTC

[jira] [Created] (QPID-4466) Cannot multiply durations in perl bindings

Jimmy Jones created QPID-4466:
---------------------------------

             Summary: Cannot multiply durations in perl bindings
                 Key: QPID-4466
                 URL: https://issues.apache.org/jira/browse/QPID-4466
             Project: Qpid
          Issue Type: Bug
    Affects Versions: 0.18
         Environment: RHEL6
            Reporter: Jimmy Jones


eg.

{{my $message = $receiver->fetch($cqpid_perl::Duration::SECOND*2);}}

results in the error

{{No matching function for overloaded 'Receiver_fetch' at ./hello_world3.pl line 45.}}

This might be because the operator* is not a member function, so SWIG has not wrapped it correctly.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org


[jira] [Updated] (QPID-4466) Cannot multiply durations in perl bindings

Posted by "Jimmy Jones (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-4466?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jimmy Jones updated QPID-4466:
------------------------------

    Attachment: perl-duration-multiply.patch

Tested fix on RHEL6
                
> Cannot multiply durations in perl bindings
> ------------------------------------------
>
>                 Key: QPID-4466
>                 URL: https://issues.apache.org/jira/browse/QPID-4466
>             Project: Qpid
>          Issue Type: Bug
>    Affects Versions: 0.18
>         Environment: RHEL6
>            Reporter: Jimmy Jones
>         Attachments: perl-duration-multiply.patch
>
>
> eg.
> {{my $message = $receiver->fetch($cqpid_perl::Duration::SECOND*2);}}
> results in the error
> {{No matching function for overloaded 'Receiver_fetch' at ./hello_world3.pl line 45.}}
> This might be because the operator* is not a member function, so SWIG has not wrapped it correctly.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org