1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-22 12:33:29 +00:00

Walk back slightly.

This commit is contained in:
Thomas Harte 2021-10-14 18:02:58 -07:00
parent 689bfbbdb3
commit d9d20d9d30
2 changed files with 12 additions and 3 deletions

View File

@ -22,7 +22,10 @@ namespace {
DiskII::DiskII(int clock_rate) :
clock_rate_(clock_rate),
inputs_(input_command),
drives_{Storage::Disk::Drive{clock_rate, 300, 1}, Storage::Disk::Drive{clock_rate, 300, 1}}
drives_{
Storage::Disk::Drive{clock_rate, 300, 1},
Storage::Disk::Drive{clock_rate, 300, 1}
}
{
drives_[0].set_clocking_hint_observer(this);
drives_[1].set_clocking_hint_observer(this);

View File

@ -37,8 +37,14 @@ class Drive: public ClockingHint::Source, public TimedEventLoop {
Drive(int input_clock_rate, int number_of_heads, ReadyType rdy_type = ReadyType::ShugartRDY);
virtual ~Drive();
// Disallow copying.
Drive(const Drive &) = delete;
// TODO: Disallow copying.
//
// GCC has an issue with the way the DiskII constructs its drive array if these are both
// deleted, despite not using the copy constructor. Unless I'm deficient in my interpretation.
// Clang has no such issue though, so possibly I'm not.
//
// Change withdrawn until I can figure out what's afoot.
// Drive(const Drive &) = delete;
void operator=(const Drive &) = delete;
/*!