[ox/std] Cleanup Result::copyTo variants
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				Build / build (push) Successful in 2m4s
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	Build / build (push) Successful in 2m4s
				
			This commit is contained in:
		
							
								
								
									
										14
									
								
								deps/ox/src/ox/std/error.hpp
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										14
									
								
								deps/ox/src/ox/std/error.hpp
									
									
									
									
										vendored
									
									
								
							@@ -172,20 +172,6 @@ struct [[nodiscard]] Result {
 | 
			
		||||
		return error;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	constexpr Error copyTo(type &val) const && noexcept {
 | 
			
		||||
		if (!error) [[likely]] {
 | 
			
		||||
			val = value;
 | 
			
		||||
		}
 | 
			
		||||
		return error;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	constexpr Error copyTo(type &val) & noexcept {
 | 
			
		||||
		if (!error) [[likely]] {
 | 
			
		||||
			val = value;
 | 
			
		||||
		}
 | 
			
		||||
		return error;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	constexpr Error copyTo(type &val) && noexcept {
 | 
			
		||||
		if (!error) [[likely]] {
 | 
			
		||||
			val = std::move(value);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user