Comparing std::tr1::function<> objects

前端 未结 7 1647
粉色の甜心
粉色の甜心 2020-12-07 02:36

I\'ve been trying to implement a C#-like event system in C++ with the tr1 function templates used to store a function that handles the event.

I created a vector so

相关标签:
7条回答
  • 2020-12-07 03:18

    I had a similar problem and found a solution to it. I used some C++0x features, but only for convenience, they are not an essential part. Take a look here:
    > Messaging system: Callbacks can be anything

    0 讨论(0)
提交回复
热议问题