Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Use fmt for formatting validation errors #6

Open
tylerjw opened this issue Jul 7, 2022 · 0 comments
Open

Use fmt for formatting validation errors #6

tylerjw opened this issue Jul 7, 2022 · 0 comments

Comments

@tylerjw
Copy link
Contributor

tylerjw commented Jul 7, 2022

Code that converts var-args to fmt formatted string:

#include <fmt/format.h>

template<typename... Args>
const std::string make_string(const char* str, Args... args)
{
  return fmt::format(str, args...);
}
<depend>fmt</depend>
find_package(fmt REQUIRED)
target_link_libraries(<library_name> fmt::fmt)
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant