Boost logo

Boost :

From: SourceForge.net (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:
https://sourceforge.net/tracker/?func=detail&atid=107586&aid=1021799&group_id=7586

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:

c:\Boost\include\boost-1_31\boost\detail\iterator.hpp
(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>
{
public:
  k_EntryIterator(k_DirectoryInfo& ak_Owner);
  ~k_EntryIterator();

private:
  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
value_type;

MfG, Marvin H. Sielenkemper

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=107586&aid=1021799&group_id=7586

-------------------------------------------------------
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.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
Boost-bugs mailing list
Boost-bugs_at_[hidden]
https://lists.sourceforge.net/lists/listinfo/boost-bugs


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk