We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dear boost rational team,
converting boost rational to wstring always returns "1" instead of the correct value const boost::rational<int> 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.
const boost::rational<int> editRate(1, 3); std::cout << editRate << "\n"; // -> 1/3 , OK std::wcout << editRate << L"\n"; // -> 1 , Error
https://godbolt.org/z/STtFqN
best regards, Stefan
The text was updated successfully, but these errors were encountered:
I've experienced similar issues with other serialization methods. I think the rational is being converted to a bool, then printed as an integer.
Sorry, something went wrong.
No branches or pull requests
Dear boost rational team,
converting boost rational to wstring always returns "1" instead of the correct value
const boost::rational<int> 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
best regards,
Stefan
The text was updated successfully, but these errors were encountered: