lumiera_/research
Ichthyostega 03b17c78da Buffer-Provider: investigate Problem with embedded type-constructor-arguments
This is a possible extension which frequently comes up again during the design of the Engine.
Basically, the `TypeHandler` in the metadata-descriptor used by the `BufferProvder` could capture
additional context-arguments, which are then later passed to an object instance embedded into the buffer.

Yesterday I attempted to use this feature for a simple demonstration in `NodeBasic_test`,
just to find out that passing additional constructor arguments to the capture fails with
a confusing compilation error message. This failure could be traced down to the function binder;
and what at first sight seemed to be a compiler error, turned out to be a quite logical limitation:
When we »close« some objects of the constructor, but delay the construction itself, we'll have to
store a copy in the constructor-λ. And this implies, that we'll have to change the types
used for instantiation of the compiler, so that the construction-function can be invoked
by passing references from the captured copy of the additional arguments.

When naively passing those forwarded arguments into the std::bind()-call,
the resulting functor will fail at instantiation, when the compiler attempts
to generate the function-call `operator()`

see: https://stackoverflow.com/q/30968573/444796
2024-12-17 00:09:18 +01:00
..
clang-static-init-1.cpp
clang-static-init-2.cpp
clang-static-init.hpp
crash_gdb_jessie-2015-08.sh
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 Buffer-Provider: investigate Problem with embedded type-constructor-arguments 2024-12-17 00:09:18 +01:00