CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2002
    Location
    Hamburg / Germany
    Posts
    280

    Question Strange compiler error when including vector

    Hi,
    if I try to include the stl header for vector I get the following compiler error in Borland C++ Builder 6:

    'reverse_iterator' is not a member of '_STL'

    The line in _vector.h where the compiler shows the error is:

    _STLP_DECLARE_RANDOM_ACCESS_REVERSE_ITERATORS;

    I am totally puzzled. I used stl vectors for ages and never had this error. Any idea why this is?

    Thanks for any help
    Sonny

  2. #2
    Join Date
    Aug 2002
    Location
    Hamburg / Germany
    Posts
    280

    Re: Strange compiler error when including vector

    Problem solved! Had the include statement accidentally inside a namespace declaration

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