Boost logo

Boost :

From: (noreply_at_[hidden])
Date: 2004-09-03 07:50:53

Bugs item #1021799, was opened at 2004-09-03 14:50
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Marvin H. Sielenkemper (sielenk)
Assigned to: Nobody/Anonymous (nobody)
Summary: struct pointer_iterator_traits<T*> fails on VC7.1

Initial Comment:
We are using boost::iterator_facade in our project.
During compilation we got an error:

(270) : warning
C4346: 'boost::remove_const<T>::type' : dependent
name is not a type

The error was caused by

class k_EntryIterator
  : public boost::iterator_facade<k_EntryIterator,
r_DirectoryEntry, boost::single_pass_traversal_tag>
  k_EntryIterator(k_DirectoryInfo& ak_Owner);

  friend class boost::iterator_core_access;

  k_DirectoryInfo& mk_Owner;

  void increment();
  bool equal(k_EntryIterator const& other) const;
  r_DirectoryEntry& dereference() const;

and was easily fixed by adding a 'typename' in line 270
of iterator.hpp:

old: typedef remove_const<T>::type value_type;
new: typedef typename remove_const<T>::type

MfG, Marvin H. Sielenkemper


You can respond by visiting:

This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
Boost-bugs mailing list

Boost list run by bdawes at, gregod at, cpdaniel at, john at