Fix/monterey compilation errors
Issue/feature addressed
When upgrading to a new Mac and the Monterey operating system has thrown up a new errors and warnings about implicit copy and unused variable.
Proposed solution
Following error from compiler warnings Have modified the code accordingly.
Implementation
Main errors appeared to be from Implicit Copy constructor and unused counter variables that were being incremented in a loop but were not updating any arrays.
Tests
Checked with standard CI suite.
Checklist
-
Functions and classes, or changes to them, are documented. -
User guide/documentation is updated. -
Changelog is updated. -
Suitable tests added for new functionality. -
Newly added files are correctly formatted. -
License added to any new files. -
No extraneous files have been added (e.g. compiler output or test data files).