Disallow accidental copy construction
This commit is contained in:
		
							parent
							
								
									37db080644
								
							
						
					
					
						commit
						9400cb36b7
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
					@ -81,6 +81,8 @@ struct Activity
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    Activity(Logger & logger, ActivityType type, const std::string & s = "");
 | 
					    Activity(Logger & logger, ActivityType type, const std::string & s = "");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    Activity(const Activity & act) = delete;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    ~Activity()
 | 
					    ~Activity()
 | 
				
			||||||
    { logger.stopActivity(id); }
 | 
					    { logger.stopActivity(id); }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue