From ff510f3b84324c39b8ed645cafbf601b35a646d0 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Tue, 5 Sep 2017 21:21:23 -0400 Subject: [PATCH] Explicitly disallows copying of VIAs, and marks the constructor as noexcept. --- Components/6522/6522.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Components/6522/6522.hpp b/Components/6522/6522.hpp index e65905fc5..45ef59fc9 100644 --- a/Components/6522/6522.hpp +++ b/Components/6522/6522.hpp @@ -104,7 +104,8 @@ class MOS6522Base: public MOS6522Storage { */ template class MOS6522: public MOS6522Base { public: - MOS6522(T &bus_handler) : bus_handler_(bus_handler) {} + MOS6522(T &bus_handler) noexcept : bus_handler_(bus_handler) {} + MOS6522(const MOS6522 &) = delete; /*! Sets a register value. */ void set_register(int address, uint8_t value);