mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-17 03:03:23 +02:00
latest sources from main repository
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// BasicEvent.h
|
||||
//
|
||||
// $Id: //poco/Main/Foundation/include/Poco/BasicEvent.h#2 $
|
||||
// $Id: //poco/Main/Foundation/include/Poco/BasicEvent.h#3 $
|
||||
//
|
||||
// Library: Foundation
|
||||
// Package: Events
|
||||
@@ -61,8 +61,8 @@ class BasicEvent: public AbstractEvent <
|
||||
/// For example:
|
||||
/// BasicEvent<int> event;
|
||||
/// MyClass myObject;
|
||||
/// event += Delegate<MyClass, int>(&myObject, &MyClass::myMethod1);
|
||||
/// event += Delegate<MyClass, int>(&myObject, &MyClass::myMethod2);
|
||||
/// event += delegate(&myObject, &MyClass::myMethod1);
|
||||
/// event += delegate(&myObject, &MyClass::myMethod2);
|
||||
///
|
||||
/// The second registration will overwrite the first one. The reason is simply that
|
||||
/// function pointers can only be compared by equality but not by lower than.
|
||||
|
Reference in New Issue
Block a user