Browse Source

Make variant constructor explicit to avoid infinite recursion on unknown types, see #70.

Michael Ragazzon 6 years ago
parent
commit
3b094f924b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Include/RmlUi/Core/Variant.h

+ 1 - 1
Include/RmlUi/Core/Variant.h

@@ -82,7 +82,7 @@ public:
 
 
 	// Construct by variant type
 	// Construct by variant type
 	template< typename T >
 	template< typename T >
-	Variant(T&& t);
+	explicit Variant(T&& t);
 
 
 	// Assign by variant type
 	// Assign by variant type
 	template<typename T>
 	template<typename T>