You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allow constructon of `jsont`/`json_stringt` from
`std::string`/`irep_idt`/string literals. This allows for a
reduction in the amount of boilerplate code. For example instead of
writing
```
result["file"] = json_stringt(id2string(location.get_file()));
```
we could write
```
result["file"] = json_stringt(location.get_file());
```
The constructor from string literal is required when constructors from
both `std::string` and `irep_idt` are provided. Otherwise the compiler
does not know whether to implicitly convert string literals into
a `std:string` or a `irep_idt`.
0 commit comments