LUMIERA.clone/research
Ichthyostega 0760525ea5 Library: deep dive into type reconciliation and tuple handling
This commit is the aggregated result of extended research
that is only loosely related to current development topics.

One theme was the construction of nested data structures using tuples,
which faces some difficulties due to tuple manipulations being limited
almost entirely to compile-time processing. However, the barrier between
compile-time and runtime can be overcome with the help of a dispatcher
table -- which leads to the secondary problem to handle the diverse
tuple elements with a common, generic functor. Such a functor can be
constructed, if and only if those element types are ''reconcilable''

The STDLIB provides two metafunctions, `std::common_type` and
`std::common_refernce`, which however pose some challenges for the
task at hand, since they include additional processing. In the end,
a custom version of the ''basic type reconciliation'' was implemented
and tested, and then used as foundation to build a dispatcher table
for runtime-indexed access and iteration over tuples.

As an aside, several deeply hidden bugs in our library code were resolved,
and the tuple-helpers, tuple string rendering and associated utilities
were regrouped and modernised.

As result of this research work, the following components are provided:
- meta/common-result
- meta/fun-trampoline
- meta/tuple-index-adaptor
2026-04-07 06:32:23 +02:00
..
clang-static-init-1.cpp BUG: Clang shows a problem when accessing templated static variable through separate compilation units 2013-10-06 23:17:18 +02:00
clang-static-init-2.cpp
clang-static-init.hpp BUG: Clang shows a problem when accessing templated static variable through separate compilation units 2013-10-06 23:17:18 +02:00
crash_gdb_jessie-2015-08.sh investigation: Segfault in GDB (IV) (related to #946) 2015-08-16 01:17:35 +02:00
DIR_INFO
gtk-canvas-experiment.cpp Copyright: clarify and simplify the file headers 2024-11-17 23:42:55 +01:00
gtk-canvas-experiment.hpp Copyright: clarify and simplify the file headers 2024-11-17 23:42:55 +01:00
gtk-canvas-main.cpp Copyright: clarify and simplify the file headers 2024-11-17 23:42:55 +01:00
gtk-style-experiment.cpp Copyright: clarify and simplify the file headers 2024-11-17 23:42:55 +01:00
gtk-style-experiment.css Copyright: clarify and simplify the file headers 2024-11-17 23:42:55 +01:00
SConscript Investigation: install a custom stylesheet 2019-08-01 00:48:04 +02:00
try.cpp Library: deep dive into type reconciliation and tuple handling 2026-04-07 06:32:23 +02:00