FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix to_string(std::any) overload (#203) · Azmah-Bad/cppfront@1619cd8 · GitHub

Repository navigation

Commit 1619cd8

Browse files
authored
Fix to_string(std::any) overload (hsutter#203)
1 parent 5d74134 commit 1619cd8

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎include/cpp2util.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1133,7 +1133,7 @@ inline auto to_string(...) -> std::string {
11331133
return "(customize me - no cpp2::to_string overload exists for this type)";
11341134
}
11351135

1136-
inline auto to_string(std::any const&) -> std::string {
1136+
inline auto to_string(std::same_as<std::any> auto const&) -> std::string {
11371137
return "std::any";
11381138
}
11391139

‎regression-tests/test-results/clang-12/mixed-string-interpolation.cpp.execution‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ p = (first, (empty))
1414
t = (3.140000, (empty), (empty))
1515
vv = 0
1616
vv = (1, 2.300000)
17-
custom = std::any
17+
custom = (customize me - no cpp2::to_string overload exists for this type)

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL