CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Threaded View

  1. #1
    Join Date
    Apr 2004
    Location
    In the back seat of New Horizons.
    Posts
    1,238

    An iterator has turned implicitly into a typename...

    I'm using gcc. Ok, in file graph.cpp, on line 56 I got the below warnings...
    Code:
    g++ -g -c graph.cpp
    graph.cpp: In member function `bool
       graph<T>::search_list(std::basic_string<char, std::char_traits<char>,
       std::allocator<char> >)':
    graph.cpp:56: warning: `std::list<graph<T>::graph_node,
       std::allocator<graph<T>::graph_node> >::iterator' is implicitly a typename
    graph.cpp:56: warning: implicit typename is deprecated, please see the
       documentation for details
    g++ main.o graph.o -o main
    Why am I getting these warnings? All I did was make an iterator and from a list.
    Attached Files Attached Files
    Here are the rules, you must obey them or the gender bender will get you.

    And if you ever think of posting without code-tags, the evil monkey will come after you.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured