lairworks / nas2d-core

NAS2D is an open source, object oriented 2D game development framework written in portable C++.
http://nas2d.lairworks.com
zlib License
10 stars 5 forks source link

Use most derived `Delegate` type, and add CTAD guide #1065

Closed DanRStevens closed 2 years ago

DanRStevens commented 2 years ago

Use most derived Delegate type, rather than the DelgateX base type. Not sure if that was a mistake from refactoring, but it was kind of odd.

Also, by making use of CTAD guides on the Delegate object, we can get away from using the MakeDelegate factory methods. The only purpose of the factory methods appears to have been to help the compiler deduce argument types, which the CTAD guide can do.