boostorg / boostorg/rational

boost::rational serialized as wstring returns always "1"

Open
#40 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
24
Forks
45
PR merge metrics
No merged PRs in 30d

Description

Dear boost rational team,

converting boost rational to **wstring** always returns "1" instead of the correct value
` const boost::rational editRate(1, 3);
std::cout << editRate << "\n"; // -> 1/3 , OK
std::wcout << editRate << L"\n"; // -> 1 , Error
`
Tested with boost 1.71.0/1.66.0, Visual C++ 2017/Compiler Explorer GCC 9.2.

https://godbolt.org/z/STtFqN

![boost_rational_wstring_error](https://user-images.githubusercontent.com/57315907/68083871-76682c00-fe2e-11e9-8f15-d41f12cf5dd1.png)

best regards,
Stefan

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.