mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 16:14:11 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			27 lines
		
	
	
		
			498 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			498 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| // Copyright Benoit Blanchon 2014-2017
 | |
| // MIT License
 | |
| //
 | |
| // Arduino JSON library
 | |
| // https://github.com/bblanchon/ArduinoJson
 | |
| // If you like this project, please add a star!
 | |
| 
 | |
| #pragma once
 | |
| 
 | |
| namespace ArduinoJson {
 | |
| namespace Internals {
 | |
| 
 | |
| template <typename T>
 | |
| struct JsonVariantDefault {
 | |
|   static T get() {
 | |
|     return T();
 | |
|   }
 | |
| };
 | |
| 
 | |
| template <typename T>
 | |
| struct JsonVariantDefault<const T> : JsonVariantDefault<T> {};
 | |
| 
 | |
| template <typename T>
 | |
| struct JsonVariantDefault<T&> : JsonVariantDefault<T> {};
 | |
| }
 | |
| }
 |