Commit 22a3007
Simplify StrCat specialization: remove if constexpr branch
All N values (including N==2) now use _MakeStringWithSpace to create a
combined string+space buffer and perform a single append call. This is
cleaner and avoids the two-operation path for single-char literals too.
Agent-Logs-Url: https://github.com/Cpp2Rust/cpp2rust/sessions/3ee80ab3-b415-4172-90d7-3a80ee9aa747
Co-authored-by: nunoplopes <2998477+nunoplopes@users.noreply.github.com>1 parent d4c81a4 commit 22a3007
1 file changed
Lines changed: 7 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
336 | 336 | | |
337 | 337 | | |
338 | 338 | | |
339 | | - | |
340 | | - | |
341 | | - | |
342 | | - | |
343 | | - | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
344 | 343 | | |
345 | 344 | | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | | - | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
354 | 348 | | |
355 | 349 | | |
356 | 350 | | |
| |||
0 commit comments