Repository navigation
Commit 59b31d0
committed
Build the header name string rather than casting to one
@marcalff on #4346: a cast to a class type reads as a conversion where the
intent is a temporary. `nostd::string_view` carries an explicit
`operator std::string`, which direct initialisation reaches just as the cast
did, so the two forms compile to the same thing and this one says what it is.
Compiles clean in both configurations of the type: the fallback
`nostd::string_view` class, and `WITH_STL=CXX17` where it is `std::string_view`
and the standard library's own string_view constructor takes over.
Signed-off-by: thc1006 <84045975+thc1006@users.noreply.github.com>1 parent beb0913 commit 59b31d0
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
| 74 | + | |
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
| |||
0 commit comments