|
|
|
|
|
by hot_gril
1210 days ago
|
|
I missed one important little piece in my example, should be `auto foo2` (to make it more of a landmine) or `string_view foo2` and not `string foo2`, as you've noticed. There's an overloaded func taking string_view and returning string_view. We use an address sanitizer in tests but not in production. IIRC we had one untested log output line like this that caused corruption in prod. |
|