diff options
author | Vas Crabb <vas@vastheman.com> | 2018-05-02 14:43:01 +1000 |
---|---|---|
committer | Vas Crabb <vas@vastheman.com> | 2018-05-02 14:43:01 +1000 |
commit | 8795d808087298025e66c818482f9d9b68968f1f (patch) | |
tree | 2b5edb3d3778917a83f28d7f613c5caf2f11b60c /src/devices/imagedev/midiin.h | |
parent | 7c8d486909ffda985e169c454874cc08733f7ed6 (diff) |
Allow devcb to be bound to a device/mixin or the target of a device
finder. This works outside machine configuration context so the
workarounds in ATA HLE and MSX slots are no longer necessary. It also
allows reduction in tag repetition in machine configuration (see
converted osborne1.cpp, zorba.cpp or the more extreme tranz330.cpp).
Allow reimagined device instantiation to take a device finder based on
current device being configured to reduce repetition (see tranz330.cpp).
Diffstat (limited to 'src/devices/imagedev/midiin.h')
-rw-r--r-- | src/devices/imagedev/midiin.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/devices/imagedev/midiin.h b/src/devices/imagedev/midiin.h index d11339e7160..776112b2625 100644 --- a/src/devices/imagedev/midiin.h +++ b/src/devices/imagedev/midiin.h @@ -30,7 +30,7 @@ public: // construction/destruction midiin_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - template<class _Object> devcb_base &set_input_callback(_Object object) { return m_input_cb.set_callback(object); } + template <class Object> devcb_base &set_input_callback(Object &&cb) { return m_input_cb.set_callback(std::forward<Object>(cb)); } // image-level overrides virtual image_init_result call_load() override; |