Skip to content

Commit de8a181

Browse files
committed
Replace () with {} on creating std::string
1 parent 344d83f commit de8a181

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/cpp2util.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1192,7 +1192,7 @@ template <brace_initializable_to<std::string> T>
11921192
requires not_one_of<T, bool, std::true_type, std::false_type>
11931193
inline auto to_string(T const& s) -> std::string
11941194
{
1195-
return std::string(s);
1195+
return std::string{s};
11961196
}
11971197

11981198
template <typename... Ts>

0 commit comments

Comments
 (0)