summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/adc1038.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/machine/adc1038.h')
-rw-r--r--src/devices/machine/adc1038.h11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/devices/machine/adc1038.h b/src/devices/machine/adc1038.h
index 0149c79a20e..d4ee5362fd0 100644
--- a/src/devices/machine/adc1038.h
+++ b/src/devices/machine/adc1038.h
@@ -8,7 +8,6 @@
Track/hold Function
***************************************************************************/
-
#ifndef MAME_MACHINE_ADC1038_H
#define MAME_MACHINE_ADC1038_H
@@ -32,15 +31,7 @@ public:
adc1038_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
- template <typename Object> void set_input_callback(Object &&cb) { m_input_cb = std::forward<Object>(cb); }
- template <class FunctionClass> void set_input_callback(const char *devname, int (FunctionClass::*callback)(int), const char *name)
- {
- set_input_callback(input_delegate(callback, name, devname, static_cast<FunctionClass *>(nullptr)));
- }
- template <class FunctionClass> void set_input_callback(int (FunctionClass::*callback)(int), const char *name)
- {
- set_input_callback(input_delegate(callback, name, nullptr, static_cast<FunctionClass *>(nullptr)));
- }
+ template <typename... T> void set_input_callback(T &&... args) { m_input_cb.set(std::forward<T>(args)...); }
void set_gti_club_hack(bool hack) { m_gticlub_hack = hack; }