]> git.mxchange.org Git - simgear.git/commitdiff
MSVC10 build fix
authorFrederic Bouvier <fredfgfs01@free.fr>
Mon, 10 May 2010 06:08:46 +0000 (08:08 +0200)
committerFrederic Bouvier <fredfgfs01@free.fr>
Sun, 1 Aug 2010 16:00:27 +0000 (18:00 +0200)
simgear/scene/material/EffectBuilder.hxx

index 6a5547bde9d58059f1a74d9b23218498c7decc10..c1d48405b04e1433c3c5c8cf25b84dfe1971e14b 100644 (file)
@@ -121,13 +121,20 @@ struct EffectNameValue
 template<typename FromType,typename ToType>
 struct bidirectional_map
 {
+#if _MSC_VER >= 1600
+    struct value_type {
+        FromType first;
+        ToType second;
+        value_type(FromType f, ToType s) : first(f),second(s){}
+    };
+#else
     typedef std::pair<FromType,ToType> value_type;
+#endif
 
     /* A bidirectional map can be simulated as a multi_index_container
      * of pairs of (FromType,ToType) with two unique indices, one
      * for each member of the pair.
      */
-
     typedef multi_index_container<
         value_type,
         indexed_by<