microsoft / microsoft/STL

<xiosbase>: _Iosb shouldn't be necessary anymore

Open
#265 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement vNext
Dominant language
C++
Stars
11.1k
Forks
1.7k
Avg merge
4d 15h
Merged PRs (30d)
22

Description

https://github.com/microsoft/STL/blob/58c5c4d628abeb22b0028ff479853d7d8212d8a7/stl/inc/xiosbase#L24-L169

This machinery shouldn't be necessary anymore (at least in C++17; hopefully C++14 is sufficiently powerful). We should investigate removing it in vNext.

Additionally, the constants _Nocreate and _Noreplace appear to be unused (they're implemented, but nothing internally appears to pass them as arguments). As they were never documented, we should remove them.

vNext note: Resolving this issue will require breaking binary compatibility. We won't be able to accept pull requests for this issue until the vNext branch is available. See #169 for more information.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with stl/inc/xiosbase, especially lines 24-169, and inspect how _Iosb, _Nocreate, and _Noreplace are used. Check the vNext branch and #169 before proceeding, since the change requires breaking binary compatibility. Done means removing the unnecessary machinery and unused constants without leaving internal callers dependent on them.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
compilers
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.