1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-06-26 10:29:31 +00:00

Explicitly disallows copying of VIAs, and marks the constructor as noexcept.

This commit is contained in:
Thomas Harte 2017-09-05 21:21:23 -04:00
parent 3b12fca417
commit ff510f3b84

View File

@ -104,7 +104,8 @@ class MOS6522Base: public MOS6522Storage {
*/
template <class T> 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);