Skip to content

Commit

Permalink
Fix to_string(std::any) overload (#203)
Browse files Browse the repository at this point in the history
  • Loading branch information
filipsajdak authored Jan 6, 2023
1 parent b7fdc3c commit 7606052
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/cpp2util.h
Original file line number Diff line number Diff line change
Expand Up @@ -1133,7 +1133,7 @@ inline auto to_string(...) -> std::string {
return "(customize me - no cpp2::to_string overload exists for this type)";
}

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ p = (first, (empty))
t = (3.140000, (empty), (empty))
vv = 0
vv = (1, 2.300000)
custom = std::any
custom = (customize me - no cpp2::to_string overload exists for this type)

0 comments on commit 7606052

Please sign in to comment.