boostorg / boostorg/multiprecision

Why does `numerator(const cpp_rational&)` not return a `const& cpp_int`

Open
#377 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
265
Forks
128
Avg merge
4h 48m
Merged PRs (30d)
2

Description

I would expect not get a copy. Is the rational number more than just two integers?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the numerator(const cpp_rational&) entry point and inspect how cpp_rational stores its numerator and denominator. Determine whether the current return type is intentional and what behavior the issue expects; no files or tests are identified in the report.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
backend
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.