I have a use case where a microcontroller library has non-copyable type for timers. Unfortunately, the library has not created a move constructor for this type either. Several higher level I/O types contain this timer type and thus inherit this non-copyable nature. I would like to use NamedType with some of these I/O types to distinguish different signals in my program.
Is there any way to use NamedType with these non-copyable types?
Is there an equivalent to emplace / inplace construction?
Is there any way I can explicitly pass the underlying construction parameters and let NamedType construct the base type from these copyable construction parameters?
I have a use case where a microcontroller library has non-copyable type for timers. Unfortunately, the library has not created a move constructor for this type either. Several higher level I/O types contain this timer type and thus inherit this non-copyable nature. I would like to use NamedType with some of these I/O types to distinguish different signals in my program.
I have a minimal example of the on godbolt
Is there any way to use NamedType with these non-copyable types? Is there an equivalent to emplace / inplace construction? Is there any way I can explicitly pass the underlying construction parameters and let NamedType construct the base type from these copyable construction parameters?