Skip to content

Use fmt for formatting validation errors #6

Description

@tylerjw

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions