Spicy
fmt.h
1 // Copyright (c) 2020-2021 by the Zeek Project. See LICENSE for details.
2 
3 #pragma once
4 
5 #include <string>
6 
7 #include <hilti/rt/3rdparty/tinyformat/tinyformat.h>
8 
9 namespace hilti::rt {
10 
12 template<typename... Args>
13 std::string fmt(const char* fmt, const Args&... args) {
14  return tfm::format(fmt, args...);
15 }
16 
18 template<typename... Args>
19 std::string fmt(const std::string& s, const Args&... args) {
20  return fmt(s.c_str(), args...);
21 }
22 } // namespace hilti::rt
Definition: any.h:7
std::string fmt(const char *fmt, const Args &... args)
Definition: fmt.h:13