lumiera_/tests/core/steam/control
Ichthyostega bc6a219543 clean-up: trash ReplacableItem (closes: #1059)
Now looking into largely obsolete library facilities...
Starting from `ScopedHolder`, I found a surprising problem with ''perfect forwarding....''

...which however turned out to be the result of ''sloppy programming'' on my side.
At that time, in 2017, seemingly I was under pressure to define a Session-Command,
which captures a Time-entity as »State Memento«. Which turned out to be impossible,
since the Time entities were conceived as being immutable -- a questionable design
decision (see #1261), which already generated quite some additional complexities.


In the course of this »exercise«, I could again clarify that the implementation
of perfect forwarding works as expected on modern compilers — confusion may arrise
sometimes due to ''copy elision'' (which the compiler is required to perform
since C++17, even when the elided constructor has observable side effects).
And it can be derailed when (as was the case here) a »grab everything« constructor
accidentally ends up generating a copy- or move-constructor for the container class
itself. This is an instance of the problem documented with #963 ...

.... and the best solution is to abide by the rule-of-five (and a half)
and to put that `ReplacableItem` to where it belongs...
2025-05-30 19:12:01 +02:00
..
argument-tuple-accept-test.cpp Copyright: clarify and simplify the file headers 2024-11-17 23:42:55 +01:00
command-argument-test.cpp clean-up: trash ReplacableItem (closes: #1059) 2025-05-30 19:12:01 +02:00
command-basic-test.cpp Copyright: clarify and simplify the file headers 2024-11-17 23:42:55 +01:00
command-binding-test.cpp Copyright: clarify and simplify the file headers 2024-11-17 23:42:55 +01:00
command-clone-builder-test.cpp Copyright: clarify and simplify the file headers 2024-11-17 23:42:55 +01:00
command-equality-test.cpp Copyright: clarify and simplify the file headers 2024-11-17 23:42:55 +01:00
command-instance-manager-test.cpp Copyright: clarify and simplify the file headers 2024-11-17 23:42:55 +01:00
command-message-binding-test.cpp Copyright: clarify and simplify the file headers 2024-11-17 23:42:55 +01:00
command-mutation-test.cpp Copyright: clarify and simplify the file headers 2024-11-17 23:42:55 +01:00
command-queue-test.cpp Copyright: clarify and simplify the file headers 2024-11-17 23:42:55 +01:00
command-registry-test.cpp Copyright: clarify and simplify the file headers 2024-11-17 23:42:55 +01:00
command-setup-test.cpp Copyright: clarify and simplify the file headers 2024-11-17 23:42:55 +01:00
command-use1-test.cpp Copyright: clarify and simplify the file headers 2024-11-17 23:42:55 +01:00
command-use2-test.cpp Copyright: clarify and simplify the file headers 2024-11-17 23:42:55 +01:00
command-use3-test.cpp Copyright: clarify and simplify the file headers 2024-11-17 23:42:55 +01:00
dispatcher-looper-test.cpp Copyright: clarify and simplify the file headers 2024-11-17 23:42:55 +01:00
handling-pattern-basics-test.cpp Copyright: clarify and simplify the file headers 2024-11-17 23:42:55 +01:00
handling-pattern-standard-impl-test.cpp Copyright: clarify and simplify the file headers 2024-11-17 23:42:55 +01:00
memento-tie-test.cpp clean-up: trash ReplacableItem (closes: #1059) 2025-05-30 19:12:01 +02:00
session-command-function-test.cpp Copyright: clarify and simplify the file headers 2024-11-17 23:42:55 +01:00
test-dummy-commands.cpp Copyright: clarify and simplify the file headers 2024-11-17 23:42:55 +01:00
test-dummy-commands.hpp Copyright: clarify and simplify the file headers 2024-11-17 23:42:55 +01:00