From acbc09b232e4570462d5936eaf20d2671530d8f4 Mon Sep 17 00:00:00 2001 From: Frederic Bouvier Date: Mon, 10 May 2010 08:08:46 +0200 Subject: [PATCH] MSVC10 build fix --- simgear/scene/material/EffectBuilder.hxx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/simgear/scene/material/EffectBuilder.hxx b/simgear/scene/material/EffectBuilder.hxx index 6a5547bd..c1d48405 100644 --- a/simgear/scene/material/EffectBuilder.hxx +++ b/simgear/scene/material/EffectBuilder.hxx @@ -121,13 +121,20 @@ struct EffectNameValue template 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 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< -- 2.39.5