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

[LWG #541] std::auto_ptr<void> specialization missing

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 4.1.3, 4.1.4, 4.2.0, 4.2.1
    • 4.3.0
    • 20. General Utilities
    • None
    • all

    • Usability

    Description

      The resolution of issue 541 adds an explicit specialization for std::auto_ptr<void> with the following definition:

      template<> class auto_ptr<void>
      {
      public:
      typedef void element_type;
      };

      See http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#541

      This needs to be implemented (since otherwise the specialization has undefined behavior – see STDCXX-172).

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - 3h
                  3h
                  Remaining:
                  Remaining Estimate - 3h
                  3h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified