[multi_array][vc-6_5/7_0] compiler problem with dependent typename

MSVC 6.5 and 7.0 have a hard time with line 391 of boost/multi_array.hpp, which involves a dependent typename keyword: ranges.ranges_[i] = typename gen_type::range(0,extents[i]); (See for instance http://tinyurl.com/pjxxl .) The attached patch fixes the problem (confirmed in MSVC 6.5, only an educated guess for MSVC 7.0.) Any objection to this being commited to the trunk and RC_1_34_0? Thank you, Joaquín M López Muñoz Telefónica, Investigación y Desarrollo 391c391,392 < ranges.ranges_[i] = typename gen_type::range(0,extents[i]); ---
typedef typename gen_type::range range_type; ranges.ranges_[i] = range_type(0,extents[i]);

Joaquín Mª López Muñoz ha escrito:
MSVC 6.5 and 7.0 have a hard time with line 391 of boost/multi_array.hpp, which involves a dependent typename keyword:
ranges.ranges_[i] = typename gen_type::range(0,extents[i]);
(See for instance http://tinyurl.com/pjxxl .) The attached patch fixes the problem (confirmed in MSVC 6.5, only an educated guess for MSVC 7.0.) Any objection to this being commited to the trunk and RC_1_34_0?
Commited to trunk and RC_1_34_0. Joaquín M López Muñoz Telefónica, Investigación y Desarrollo
participants (1)
-
Joaquín Mª López Muñoz