Skip to content
New issue

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

Deprecate Currency::format #1810

Merged
merged 1 commit into from
Dec 11, 2023
Merged

Conversation

sweemer
Copy link
Contributor

@sweemer sweemer commented Oct 11, 2023

Closes #1801

Let me know if there are any other arguments to the constructors of Currency or Currency::Data that you think should be deprecated at the same time.

@coveralls
Copy link

coveralls commented Oct 11, 2023

Coverage Status

coverage: 72.033% (+0.005%) from 72.028%
when pulling 7d1c6b8 on sweemer:deprecate-format
into 1cb2dfc on lballabio:master.

@sweemer
Copy link
Contributor Author

sweemer commented Dec 5, 2023

@lballabio Can we include this in 1.33?

@lballabio
Copy link
Owner

Yes, one way or the other — I wanted to try and understand what isn't working first

ql/money.hpp Outdated
/*! \deprecated Copy the formatting into your project if you need it.
Deprecated in version 1.33.
*/
[[deprecated("Copy the formatting into your project if you need it.")]]
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would probably keep operator<< for convenience but just have it output something like rounded value + ISO currency, as in "150 JPY"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@lballabio lballabio added this to the Release 1.33 milestone Dec 11, 2023
@lballabio lballabio merged commit aab8c69 into lballabio:master Dec 11, 2023
51 checks passed
@sweemer sweemer deleted the deprecate-format branch December 12, 2023 00:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Inconsistent currency formatting
3 participants