Closed segfault-magnet closed 5 years ago
Seems to work now -> https://wandbox.org/permlink/5iQnf9qyWwxGl8PS Notice that in the current design const/non-const types are distinguishable by the SML, hence they have to be passed separately or injected using di framework. That will most likely change in the future though.
Compile fails when trying to catch a dependency by const& when it was constructed as non const (at the time of constructing the state machine)
Is there a way to correct this in sml so I can capture the dependency by const& regardless of how it was constructed.