Jorrit Rouwe hace 5 meses
padre
commit
c52aa1b189
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      Jolt/Core/STLLocalAllocator.h

+ 2 - 1
Jolt/Core/STLLocalAllocator.h

@@ -43,7 +43,8 @@ public:
 	/// Constructor used when rebinding to another type. This expects the allocator to use the original memory pool from the first allocator,
 	/// but in our case we cannot use the local buffer of the original allocator as it has different size and alignment rules.
 	/// To solve this we make this allocator fall back to the heap immediately.
-	template <class T2>		STLLocalAllocator(const STLLocalAllocator<T2, N> &) : mNumElementsUsed(N) { }
+	template <class T2>
+	explicit				STLLocalAllocator(const STLLocalAllocator<T2, N> &) : mNumElementsUsed(N) { }
 
 	/// Check if inPointer is in the local buffer
 	inline bool				is_local(const_pointer inPointer) const