0

Possible Duplicate: What is a C++ delegate?

I need to use a callback in C++ like delegates in C#. For example, in C# we have:

...
      public delegate void SomeWorkhandeler(object Arg);
...
class A
{
    private SomeWorkhandeler doWork= null;
    public SomeWorkhandeler DoWork { get { return doWork; } set { doWork= value; } }
}

Now, what is the C++ code similar to this example?

Community
  • 1
  • 1
Mohsen Zahraee
  • 3,309
  • 5
  • 31
  • 45

0 Answers0