Skip to content

Use fmt for formatting validation errors #6

@tylerjw

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)

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