Uploaded image for project: 'AMQ Clients'
  1. AMQ Clients
  2. ENTMQCL-618

[cpp] I should not have to #include <proton/work_queue.hpp> to pass C++11 lambdas to schedule()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • None
    • 1.2.1.GA
    • amqp-cpp-client

      #include <proton/work_queue.hpp>
      // ...
      c.schedule(proton::duration::IMMEDIATE, [&c]() { c.stop(); });
      

      Without the include, I get error: no matching function for call to ‘proton::container::schedule(const proton::duration&, main(int, char**)::<lambda()>)’.

      There was discussion about this in comments on ENTMQCL-601.

              astitcher Andrew Stitcher
              jdanek@redhat.com Jiri Daněk
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: