LWG-3172 3-arg `std::hypot` is underspecified compared to the 2-arg overload

Open
#6,564 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
Half a day
Newbie friendliness
54/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
cpp
Domain
testing

Research direction

Start by reading LWG-3172 and the existing std::hypot implementation and tests in the repository. Check whether the three-argument overload meets the clarified specification, then add test coverage for any relevant cases. Done means the implementation is confirmed conforming and tests cover the requirement; the issue does not name specific files or test cases.

Written by the indexing model from the issue text.

Description

LWG

LWG-3172 3-arg std::hypot is underspecified compared to the 2-arg overload

It's likely that we're already conforming, but we should double-check and add test coverage.

Dominant language
C++
Stars
11.2k
Forks
1.7k
Avg merge
4d 4h
Merged PRs (30d)
14

Getting set up

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.

More from microsoft/STL

All issues in microsoft/STL

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.