Skip to content

Commit

Permalink
Add basic_format_string::get()
Browse files Browse the repository at this point in the history
  • Loading branch information
huangqinjin authored and vitaut committed Sep 23, 2022
1 parent 0b5cb18 commit 48f525d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/fmt/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -3180,6 +3180,7 @@ template <typename Char, typename... Args> class basic_format_string {
basic_format_string(basic_runtime<Char> r) : str_(r.str) {}

FMT_INLINE operator basic_string_view<Char>() const { return str_; }
FMT_INLINE basic_string_view<Char> get() const { return str_; }
};

#if FMT_GCC_VERSION && FMT_GCC_VERSION < 409
Expand Down

0 comments on commit 48f525d

Please sign in to comment.