delete copy constructor of Sample

This commit is contained in:
Markus Pilman 2021-04-28 14:11:09 -06:00
parent d946e90d75
commit 32ee206675
1 changed files with 2 additions and 0 deletions

View File

@ -47,6 +47,8 @@ struct IALPCollector : IALPCollectorBase {
struct Sample : std::enable_shared_from_this<Sample> {
double time = 0.0;
Sample(Sample const&) = delete;
Sample& operator=(Sample const&) = delete;
std::unordered_map<WaitState, std::pair<char*, unsigned>> data;
~Sample() {
std::for_each(data.begin(), data.end(), [](std::pair<WaitState, std::pair<char*, unsigned>> entry) {