Replace overloading with template specializations.#147
Replace overloading with template specializations.#147AnonymousProgrammerLandau wants to merge 3 commits intojeremyong:masterfrom
Conversation
Split specializations of different kind of types from `primitives.h` into separate header files: `primitives.h`, `tuples.h` and `userdefined.h`.
|
To fulfill the two new test cases, I started out to correct the order of declarations and definitions for all overloads of By switching to the proposed solution, the order of includes is no longer such a problem. Uses of [1] holds also for |
Define the interface for types in the new
types.h. This includes functions like_get,_checked_getand_pushas well as_get_nand_push_n. The notion of primitive types, to define types not being able to get a raw pointer to from Lua, is inverted and has changed tois_referenceable.Split specializations of different kind of types from
primitives.hintoseparate header files:
primitives.h,tuples.handuserdefined.h.