MultiMethods in C++: Finding a complete solution
Submitted By: WEBMASTER
Rating: (Not rated)
This article provides a way to solve famous "multimethods problem". The main merits of the proposed solution are: no use of type casts of any kind (dynamic, static, reinterpret, const or C-style) no use of RTTI; no use of preprocessor; strong type safety; separate compilation; constant time of multimethod execution; no dynamic memory allocation (via new or malloc) during multimethod call; no use of nonstandard libraries; only standard C++ features is used.
Add Your Rating