Skip to content

Commit f71ba40

Browse files
committed
書式文字列の取得のしかたを修正
1 parent a659a6b commit f71ba40

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

reference/format/format.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -622,25 +622,25 @@ int main()
622622
template<class... Args>
623623
string format(format_string<Args...> fmt, const Args&... args)
624624
{
625-
return vformat(fmt.str, make_format_args(args...));
625+
return vformat(fmt.get(), make_format_args(args...));
626626
}
627627
628628
template<class... Args>
629629
wstring format(wformat_string<Args...> fmt, const Args&... args)
630630
{
631-
return vformat(fmt.str, make_wformat_args(args...));
631+
return vformat(fmt.get(), make_wformat_args(args...));
632632
}
633633
634634
template<class... Args>
635635
string format(const locale& loc, format_string<Args...> fmt, const Args&... args)
636636
{
637-
return vformat(loc, fmt.str, make_format_args(args...));
637+
return vformat(loc, fmt.get(), make_format_args(args...));
638638
}
639639
640640
template<class... Args>
641641
wstring format(const locale& loc, wformat_string<Args...> fmt, const Args&... args)
642642
{
643-
return vformat(loc, fmt.str, make_wformat_args(args...));
643+
return vformat(loc, fmt.get(), make_wformat_args(args...));
644644
}
645645
```
646646
* string[link /reference/string/basic_string.md]

0 commit comments

Comments
 (0)