Skip to content

Commit

Permalink
書式文字列の取得のしかたを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
tetsurom committed Apr 1, 2024
1 parent a659a6b commit f71ba40
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions reference/format/format.md
Original file line number Diff line number Diff line change
Expand Up @@ -622,25 +622,25 @@ int main()
template<class... Args>
string format(format_string<Args...> fmt, const Args&... args)
{
return vformat(fmt.str, make_format_args(args...));
return vformat(fmt.get(), make_format_args(args...));
}
template<class... Args>
wstring format(wformat_string<Args...> fmt, const Args&... args)
{
return vformat(fmt.str, make_wformat_args(args...));
return vformat(fmt.get(), make_wformat_args(args...));
}
template<class... Args>
string format(const locale& loc, format_string<Args...> fmt, const Args&... args)
{
return vformat(loc, fmt.str, make_format_args(args...));
return vformat(loc, fmt.get(), make_format_args(args...));
}
template<class... Args>
wstring format(const locale& loc, wformat_string<Args...> fmt, const Args&... args)
{
return vformat(loc, fmt.str, make_wformat_args(args...));
return vformat(loc, fmt.get(), make_wformat_args(args...));
}
```
* string[link /reference/string/basic_string.md]
Expand Down

0 comments on commit f71ba40

Please sign in to comment.