Uploaded image for project: 'C++ Standard Library'
  1. C++ Standard Library
  2. STDCXX-75

[25.fill.cpp] std::fill_n() Size template parameter not exercised

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 4.1.3
    • 4.2.0
    • Tests
    • None
    • all

    • Inefficiency

    Description

      From http://mail-archives.apache.org/mod_mbox/incubator-stdcxx-dev/200511.mbox/%3c438CD682.8050005@roguewave.com%3e:

      Date: Tue, 29 Nov 2005 15:30:26 -0700
      From: Martin Sebor <sebor@roguewave.com>
      To: stdcxx-dev@incubator.apache.org
      Subject: Re: test for lib.alg.fill

      Anton Pevtsov wrote:
      > The attached file contains my attempt to update the lib.alg.fill test.

      Excellent, thanks! I've committed it with a few minor changes here:

      >
      > I have a question about fill_n test: is it necessary to implement a
      > separate test for the fill_n algorithm
      > with our custom Size class?
      > If so, this test may be updated - currently it just uses size_t.

      You are right, that would be a useful enhancement. Size need only be
      convertible to int, it need not actually support all the same operations
      (such as postincrement). Let me open an issue to keep track of this
      enhancement to the test.

      Attachments

        Activity

          People

            sebor Martin Sebor
            sebor Martin Sebor
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: