On 21 ???, 02:08, Marek Vondrak <marek.vond...@gmail.com> wrote:
below, which is also is not guaranteed to work:
class Test { typedef std::list< Test >::iterator Iterator; };
This is the exact root of the problem. Current Boost's date_time
library uses the following code snippet:
template<typename charT>
struct string_parse_tree {
...
typedef std::multimap<charT, string_parse_tree > ptree_coll;
...
typedef typename ptree_coll::value_type value_type;
typedef typename ptree_coll::iterator iterator;
...
};
So HP's compiler rejects this code for the reasons you have
mentioned in your post.
However in this case, you can change the code to use "std::auto_ptr<
std::map< char, Test > > items" intead, but that could be annoying.
I understand which workaround should be used.
Thank you for your reply.
{ edits: sig & banner removed. please don't quote extraneous material. -mod }
http://groups.google.com/group/comp.lang.c++.moderated/browse_thread/thread/730a519e73619418/f1907849fca3db56?lnk=gst&q=nikola#f1907849fca3db56
[ comp.lang.c++.moderated. First time posters: Do this! ]