Merge branch 'develop' into feature/sax2
This commit is contained in:
		
						commit
						35e43df625
					
				
					 6 changed files with 92 additions and 91 deletions
				
			
		|  | @ -434,6 +434,7 @@ class parser | |||
| 
 | ||||
|         if (keep and callback and not callback(depth, parse_event_t::value, result)) | ||||
|         { | ||||
|             result.m_value.destroy(result.m_type); | ||||
|             result.m_type = value_t::discarded; | ||||
|         } | ||||
|     } | ||||
|  |  | |||
|  | @ -955,7 +955,7 @@ class basic_json | |||
|         /// constructor for rvalue strings
 | ||||
|         json_value(string_t&& value) | ||||
|         { | ||||
|             string = create<string_t>(std::move(value)); | ||||
|             string = create<string_t>(std::forward < string_t&& > (value)); | ||||
|         } | ||||
| 
 | ||||
|         /// constructor for objects
 | ||||
|  | @ -967,7 +967,7 @@ class basic_json | |||
|         /// constructor for rvalue objects
 | ||||
|         json_value(object_t&& value) | ||||
|         { | ||||
|             object = create<object_t>(std::move(value)); | ||||
|             object = create<object_t>(std::forward < object_t&& > (value)); | ||||
|         } | ||||
| 
 | ||||
|         /// constructor for arrays
 | ||||
|  | @ -979,7 +979,7 @@ class basic_json | |||
|         /// constructor for rvalue arrays
 | ||||
|         json_value(array_t&& value) | ||||
|         { | ||||
|             array = create<array_t>(std::move(value)); | ||||
|             array = create<array_t>(std::forward < array_t&& > (value)); | ||||
|         } | ||||
| 
 | ||||
|         void destroy(value_t t) noexcept | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue