sources/format.h

changeset 11
cffa2777d917
parent 10
3874575d924d
child 14
33b8f428bacb
--- a/sources/format.h	Fri Dec 12 00:55:51 2014 +0200
+++ b/sources/format.h	Fri Dec 12 01:37:04 2014 +0200
@@ -33,8 +33,8 @@
 #include "basics.h"
 #include "geometry.h"
 
-#define FORMAT_OVERLOAD(T) \
-	inline FUNCTION make_format_argument (T a) -> String
+#define FORMAT_OVERLOAD(...) \
+	inline FUNCTION make_format_argument (__VA_ARGS__ a) -> String
 
 //
 // -------------------------------------------------------------------------------------------------
@@ -57,8 +57,8 @@
 	return result;
 }
 
-template<typename T>
-FORMAT_OVERLOAD (const List<T>&)
+template<typename T, typename C>
+FORMAT_OVERLOAD (const Container<T, C>&)
 {
 	String result;
 

mercurial