toJSON(): Support some more types
This commit is contained in:
		
							parent
							
								
									ae522f930d
								
							
						
					
					
						commit
						b0f7f9c98f
					
				
					 2 changed files with 12 additions and 0 deletions
				
			
		|  | @ -44,6 +44,16 @@ void toJSON(std::ostream & str, long n) | |||
|     str << n; | ||||
| } | ||||
| 
 | ||||
| void toJSON(std::ostream & str, unsigned int n) | ||||
| { | ||||
|     str << n; | ||||
| } | ||||
| 
 | ||||
| void toJSON(std::ostream & str, int n) | ||||
| { | ||||
|     str << n; | ||||
| } | ||||
| 
 | ||||
| void toJSON(std::ostream & str, double f) | ||||
| { | ||||
|     str << f; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue