mirror of
				https://github.com/jart/cosmopolitan.git
				synced 2025-10-26 19:16:41 +00:00 
			
		
		
		
	make_shared should work with nontrivial objects (#1293)
This commit is contained in:
		
							parent
							
								
									675abfa029
								
							
						
					
					
						commit
						37e2660c7f
					
				
					 1 changed files with 7 additions and 1 deletions
				
			
		|  | @ -147,6 +147,10 @@ class shared_emplace : public shared_ref | |||
|         T t; | ||||
|     }; | ||||
| 
 | ||||
|     ~shared_emplace() override | ||||
|     { | ||||
|     } | ||||
| 
 | ||||
|     template<typename... Args> | ||||
|     void construct(Args&&... args) | ||||
|     { | ||||
|  | @ -159,7 +163,9 @@ class shared_emplace : public shared_ref | |||
|     } | ||||
| 
 | ||||
|   private: | ||||
|     explicit constexpr shared_emplace() noexcept = default; | ||||
|     explicit constexpr shared_emplace() noexcept | ||||
|     { | ||||
|     } | ||||
| 
 | ||||
|     void dispose() noexcept override | ||||
|     { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue