now we're able to construct suitable parameter values from the arguments passed embedded in the GenNodes, as is demonstrated with the EntryID<long> constructed from an ID-string. We really need a full-blown double-dispatch, since the content type of the concrete GenNode is only known at runtime (encoded in the RTTI) There is still the problem with generating some spurions additional conversion pathes, some of which are narrowing (and thus dangerous). The copiler emits several warnings here, and all of them are justified. E.g. it would be possible to pass an int64_t in the GenNode and initialise a short from it. This might be convenient at times, but I tend rather to be prohibitive here and thus consider to built in distinct limitations on the allowed conversions. |
||
|---|---|---|
| .. | ||
| clang-static-init-1.cpp | ||
| clang-static-init-2.cpp | ||
| clang-static-init.hpp | ||
| crash_gdb_jessie-2015-08.sh | ||
| DIR_INFO | ||
| SConscript | ||
| try.cpp | ||