@@ -39,15 +39,15 @@ public:
3939 typedef value_type* pointer;
4040 typedef const value_type* const_pointer;
4141#elif CPPREFERENCE_STDVER <2011
42- typedef Allocator::reference reference;
43- typedef Allocator::const_reference const_reference;
44- typedef Allocator::pointer pointer;
45- typedef Allocator::const_pointer const_pointer;
42+ typedef typename Allocator::reference reference;
43+ typedef typename Allocator::const_reference const_reference;
44+ typedef typename Allocator::pointer pointer;
45+ typedef typename Allocator::const_pointer const_pointer;
4646#else
4747 typedef value_type& reference;
4848 typedef const value_type& const_reference;
49- typedef std::allocator_traits<Allocator>::pointer pointer;
50- typedef std::allocator_traits<Allocator>::const_pointer const_pointer;
49+ typedef typename std::allocator_traits<Allocator>::pointer pointer;
50+ typedef typename std::allocator_traits<Allocator>::const_pointer const_pointer;
5151#endif
5252 typedef T* iterator; // actual type is unspecified
5353 typedef const T* const_iterator; // actual type is unspecified
@@ -296,15 +296,15 @@ public:
296296 typedef value_type* pointer;
297297 typedef const value_type* const_pointer;
298298#elif CPPREFERENCE_STDVER <2011
299- typedef Allocator::reference reference;
300- typedef Allocator::const_reference const_reference;
301- typedef Allocator::pointer pointer;
302- typedef Allocator::const_pointer const_pointer;
299+ typedef typename Allocator::reference reference;
300+ typedef typename Allocator::const_reference const_reference;
301+ typedef typename Allocator::pointer pointer;
302+ typedef typename Allocator::const_pointer const_pointer;
303303#else
304304 typedef value_type& reference;
305305 typedef const value_type& const_reference;
306- typedef std::allocator_traits<Allocator>::pointer pointer;
307- typedef std::allocator_traits<Allocator>::const_pointer const_pointer;
306+ typedef typename std::allocator_traits<Allocator>::pointer pointer;
307+ typedef typename std::allocator_traits<Allocator>::const_pointer const_pointer;
308308#endif
309309 typedef T* iterator; // actual type is unspecified
310310 typedef const T* const_iterator; // actual type is unspecified
0 commit comments