Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 696328 Details for
Bug 910201
FTBFS qpid-cpp-0.20
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Fix for this issue
04-Incomplete-type-HandlerT.patch (text/plain), 2.00 KB, created by
Petr Machata
on 2013-02-12 00:57:48 UTC
(
hide
)
Description:
Fix for this issue
Filename:
MIME Type:
Creator:
Petr Machata
Created:
2013-02-12 00:57:48 UTC
Size:
2.00 KB
patch
obsolete
>diff -up qpid-0.20/cpp/src/qpid/framing/Handler.h\~ qpid-0.20/cpp/src/qpid/framing/Handler.h >--- qpid-0.20/cpp/src/qpid/framing/Handler.h~ 2009-05-06 16:59:23.000000000 +0200 >+++ qpid-0.20/cpp/src/qpid/framing/Handler.h 2013-02-12 01:40:55.000000000 +0100 >@@ -49,29 +49,12 @@ struct Handler { > * Functor<F>(f) will copy f. > * Functor<F&>(f) will only take a reference to x. > */ >- template <class F> class Functor : public Handler<T> { >- public: >- Functor(F f, Handler<T>* next=0) : Handler<T>(next), functor(f) {} >- void handle(T t) { functor(t); } >- private: >- F functor; >- }; >+ template <class F> class Functor; > > /** Adapt a member function of X as a Handler. > * Only holds a reference to its target, not a copy. > */ >- template <class X, void (X::*F)(T)> >- class MemFunRef : public Handler<T> { >- public: >- MemFunRef(X& x, Handler<T>* next=0) : Handler(next), target(&x) {} >- void handle(T t) { (target->*F)(t); } >- >- /** Allow calling with -> syntax */ >- MemFunRef* operator->() { return this; } >- >- private: >- X* target; >- }; >+ template <class X, void (X::*F)(T)> class MemFunRef; > > /** Interface for a handler that implements a > * pair of in/out handle operations. >@@ -94,7 +77,29 @@ struct Handler { > }; > }; > >+template <class T> >+template <class F> >+class Handler<T>::Functor : public Handler<T> { >+ public: >+ Functor(F f, Handler<T>* next=0) : Handler<T>(next), functor(f) {} >+ void handle(T t) { functor(t); } >+ private: >+ F functor; >+}; >+ >+template <class T> >+template <class X, void (X::*F)(T)> >+class Handler<T>::MemFunRef : public Handler<T> { >+ public: >+ MemFunRef(X& x, Handler<T>* next=0) : Handler(next), target(&x) {} >+ void handle(T t) { (target->*F)(t); } > >+ /** Allow calling with -> syntax */ >+ MemFunRef* operator->() { return this; } >+ >+ private: >+ X* target; >+}; > > }} > #endif /*!QPID_FRAMING_HANDLER_H*/ > >Diff finished. Tue Feb 12 01:41:15 2013
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 910201
: 696328