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

Details

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

    Description

      #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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: