fix pretty printer for recursive types
This commit is contained in:
parent
310d119ffb
commit
4d25fc25c4
5 changed files with 396 additions and 388 deletions
|
|
@ -1,7 +1,7 @@
|
|||
// compile-command: "g++ -Iinclude -D_GLIBCXX_DEBUG -fsanitize=address,undefined -g3 -ggdb3 -std=c++17 example.cpp -o example && SOI_H_COLOR=1 SOI_H_EOFCHECK=1 ./example <<< ''"
|
||||
#include <soi>
|
||||
|
||||
signed main() {
|
||||
signed main() {
|
||||
dbg("hi");
|
||||
string s="world";
|
||||
dbg(s);
|
||||
|
|
@ -11,6 +11,9 @@ signed main() {
|
|||
vector<int> pi{3,1,4,1,5,9,2,6};
|
||||
dbg(pi);
|
||||
dbg(vector<int>{3,1,4,1,5,9,2,6});
|
||||
dbg(pi);
|
||||
dbg(vector<pair<int, int>>{{3,1},{4,1}});
|
||||
dbg(vector<pair<int, vector<string>>>{{3,{"hi"}},{4,{"hello", "world"}}});
|
||||
dbg(set<int>{3,1,4});
|
||||
dbg(map<int, string>{{3,"three"},{1,"one"}});
|
||||
cout << "hi\n";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue