Uploaded image for project: 'Embedded Software & Tools'
  1. Embedded Software & Tools
  2. EXT_EP-8711

Incomplete class type when using various members of <iterator>

    XMLWordPrintable

Details

    • Bug
    • Status: New
    • Medium
    • Resolution: Unresolved
    • Code Generation Tools
    • CODEGEN-4091
    • Hide
      ARM_18.1.0.LTS
      ARM_18.12.0.LTS
      ARM_20.2.0.LTS
      Show
      ARM_18.1.0.LTS ARM_18.12.0.LTS ARM_20.2.0.LTS
    • Hide
      The following code sample results in an incomplete type error:

      #include <iterator>
      int main(void)
      {
              bool always_false = false;
              if (always_false) {
                      std::istreambuf_iterator<char> cl;
                      std::istreambuf_iterator<char> var1;
                      const std::istreambuf_iterator<char> & arg1 = var1;
                      (void) cl.equal(arg1);
              }
              return 1;
      }

      The question is whether including <iterator> ought to include <streambuf>, which includes the definition for std::basic_streambuf, which is required by the definition of std::istreambuf_iterator.
      Show
      The following code sample results in an incomplete type error: #include <iterator> int main(void) {         bool always_false = false;         if (always_false) {                 std::istreambuf_iterator<char> cl;                 std::istreambuf_iterator<char> var1;                 const std::istreambuf_iterator<char> & arg1 = var1;                 (void) cl.equal(arg1);         }         return 1; } The question is whether including <iterator> ought to include <streambuf>, which includes the definition for std::basic_streambuf, which is required by the definition of std::istreambuf_iterator.

    Description

      Incomplete class type when using various members of <iterator>

      Attachments

        Activity

          People

            syncuser TI User
            syncuser TI User
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: