Provide default implementation for int_to_string, but allow for overloaded function
This commit is contained in:
		
							parent
							
								
									0f073e26eb
								
							
						
					
					
						commit
						4615f5a980
					
				
					 2 changed files with 4 additions and 2 deletions
				
			
		|  | @ -12,7 +12,8 @@ namespace nlohmann | |||
| { | ||||
| namespace detail | ||||
| { | ||||
| void int_to_string( std::string& target, int value ) | ||||
| template<typename string_type> | ||||
| void int_to_string( string_type& target, int value ) | ||||
| { | ||||
|     target = std::to_string(value); | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue