Qpid
  1. Qpid
  2. QPID-4466

Cannot multiply durations in perl bindings

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.18
    • Fix Version/s: 0.21
    • Component/s: None
    • Labels:
      None
    • Environment:

      RHEL6

      Description

      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.

        Activity

        Hide
        Jimmy Jones added a comment -

        Tested fix on RHEL6

        Show
        Jimmy Jones added a comment - Tested fix on RHEL6
        Hide
        Darryl L. Pierce added a comment -

        Thank you for this. I'm also updating the stable APIs on top of the language bindings to include support for the multiplication operator.

        Show
        Darryl L. Pierce added a comment - Thank you for this. I'm also updating the stable APIs on top of the language bindings to include support for the multiplication operator.
        Hide
        Darryl L. Pierce added a comment -

        Added an additional change to the Ruby APIs to also include this functionality.

        Show
        Darryl L. Pierce added a comment - Added an additional change to the Ruby APIs to also include this functionality.

          People

          • Assignee:
            Darryl L. Pierce
            Reporter:
            Jimmy Jones
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development