]> Creatis software - clitk.git/blobdiff - common/clitkCommon.h
Merge /home/srit/src/clitk/clitk
[clitk.git] / common / clitkCommon.h
index 51258e66fc3abd5c418dfc480bdba43debd32442..9eb36522004c172b9cfa6d8bb209f45821cb02f5 100644 (file)
@@ -38,7 +38,7 @@
 #if defined(unix) || defined(__APPLE__)
 #  include <sys/time.h>
 #  include <sys/resource.h>
-#elif defined(WIN32)
+#elif defined(_WIN32)
 #  include <windows.h>
 #endif
 
@@ -227,6 +227,13 @@ namespace clitk {
   //--------------------------------------------------------------------
   void PrintMemoryUsed();
 
+  //--------------------------------------------------------------------
+  // Convert a map to a vector
+  template <typename M, typename V> 
+  void MapToVecFirst(const M & m, V & v);
+  template <typename M, typename V> 
+  void MapToVecSecond(const M & m, V & v);
+
 #include "clitkCommon.txx"
 
 } // end namespace