@@ -42,7 +42,7 @@ struct CLoader
4242 template <>
4343 static void load_data<true >(T& data, M& stream, const P& p)
4444 {
45- CLoader<M, P>::load_data (*(data = new object_type_traits::remove_pointer<T>::type ()), stream, p);
45+ CLoader<M, P>::load_data (*(data = new typename object_type_traits::remove_pointer<T>::type ()), stream, p);
4646 }
4747 };
4848
@@ -101,7 +101,7 @@ struct CLoader
101101 const u32 count = stream.r_u32 ();
102102 for (u32 i = 0 ; i < count; ++i)
103103 {
104- T::value_type temp;
104+ typename T::value_type temp;
105105 CLoader<M, P>::load_data (temp, stream, p);
106106 if (p (data, temp))
107107 add (data, temp);
@@ -144,11 +144,11 @@ struct CLoader
144144 template <typename T1, typename T2>
145145 static void load_data (std::pair<T1, T2>& data, M& stream, const P& p)
146146 {
147- if (p (data, const_cast <object_type_traits::remove_const<T1>::type&>(data.first ), true ))
147+ if (p (data, const_cast <typename object_type_traits::remove_const<T1>::type&>(data.first ), true ))
148148 {
149149 const bool value = object_type_traits::is_same<T1, LPCSTR>::value;
150150 VERIFY (!value);
151- load_data (const_cast <object_type_traits::remove_const<T1>::type&>(data.first ), stream, p);
151+ load_data (const_cast <typename object_type_traits::remove_const<T1>::type&>(data.first ), stream, p);
152152 }
153153 if (p (data, data.second , false ))
154154 load_data (data.second , stream, p);
@@ -183,7 +183,7 @@ struct CLoader
183183 const u32 count = stream.r_u32 ();
184184 for (u32 i = 0 ; i < count; ++i)
185185 {
186- svector<T, size>::value_type temp;
186+ typename svector<T, size>::value_type temp;
187187 CLoader<M, P>::load_data (temp, stream, p);
188188 if (p (data, temp))
189189 data.push_back (temp);
@@ -202,7 +202,7 @@ struct CLoader
202202 const u32 count = stream.r_u32 ();
203203 for (u32 i = 0 ; i < count; ++i)
204204 {
205- std::queue<T1, T2>::value_type t;
205+ typename std::queue<T1, T2>::value_type t;
206206 CLoader<M, P>::load_data (t, stream, p);
207207 if (p (temp, t))
208208 temp.push (t);
@@ -223,7 +223,7 @@ struct CLoader
223223 const u32 count = stream.r_u32 ();
224224 for (u32 i = 0 ; i < count; ++i)
225225 {
226- T1<T2, T3>::value_type t;
226+ typename T1<T2, T3>::value_type t;
227227 CLoader<M, P>::load_data (t, stream, p);
228228 if (p (temp, t))
229229 temp.push (t);
@@ -244,7 +244,7 @@ struct CLoader
244244 u32 count = stream.r_u32 ();
245245 for (u32 i = 0 ; i < count; ++i)
246246 {
247- T1<T2, T3, T4>::value_type t;
247+ typename T1<T2, T3, T4>::value_type t;
248248 CLoader<M, P>::load_data (t, stream, p);
249249 if (p (temp, t))
250250 temp.push (t);
0 commit comments