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

add support for unsigned long long #8

Closed
wants to merge 3 commits into from

Conversation

gcflymoto
Copy link
Contributor

Need to be able to format the following without any casting

std::cout << fmt::str(fmt::Format("{:x}") << 0xAEull) << std::endl;
std::cout << fmt::str(fmt::Format("{:x}") << 0xAEul) << std::endl;
std::cout << fmt::str(fmt::Format("{:x}") << uint64_t(0xae)) << std::endl;

I believe the last one is already supported. I did not add the tests for this. can't get generated make file from cmake to do anything on linux or work on windows. But was able to compile the VS solution.

Want to be able to format the following without any casting

std::cout << fmt::str(fmt::Format("{:x}") << 0xAEull) << std::endl;
std::cout << fmt::str(fmt::Format("{:x}") << 0xAEul) << std::endl;
std::cout << fmt::str(fmt::Format("{:x}") << uint64_t(0xae)) <<
std::endl;
This includes extended error messages which show the original format
string. It works for 'char' type with wchar_t returning only the
message.

The thrown exception class now has a format() method to retrieve the
pointer to the original format.
@gcflymoto
Copy link
Contributor Author

Dang it got lumped together

put the better error message on a separate branch
@vitaut
Copy link
Contributor

vitaut commented Nov 21, 2013

Merged the original commit gcflymoto@225d4f7 to keep the history clean (avoiding "undo" commits).
Thanks.

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.

2 participants