Entt: Wiki page for Dispatcher may be out of date?

Created on 27 Feb 2019  路  2Comments  路  Source: skypjack/entt

The Wiki page "Crash Course: events, signals and everything in between" shows the dispatcher class being constructed without any template parameters. However, it seems that the dispatcher must be constructed with a templated value type that will be provided to connected callback functions (in addition to the event type itself). This also seems to be the way dispatcher is used in the entt test source code, where the day is constructed with int template argument and is used to trigger events of type "an_event".

Does this mean the Wiki page is out of date? Is there a way to use dispatcher where only the event struct is sent to connected functions without an additional data type (such as the int used in the test code)?

documentation

Most helpful comment

Just want to say thank you for solving this issue so quickly <3

All 2 comments

Indeed it's outdated, my fault.
However, it is due to a change that I plan to revert this week, because it's pointless.
Please, leave the issue open. I'll close it as soon as I find the time to do that.

Thanks.

Just want to say thank you for solving this issue so quickly <3

Was this page helpful?
0 / 5 - 0 ratings

Related issues

blockspacer picture blockspacer  路  3Comments

skypjack picture skypjack  路  4Comments

Kerndog73 picture Kerndog73  路  5Comments

dm67x picture dm67x  路  4Comments

skypjack picture skypjack  路  7Comments