Commit 5d1b63e
committed
Fix build on clang 17
We're seeing a clang 17 build failure:
```
... struct.h:15:30: error: constexpr variable cannot have non-literal type 'const std::string' (aka 'const basic_string<char>')
15 | static constexpr std::string RETVAL_FIELD_NAME = "$retval";
| ^
... bits/basic_string.h:85:11: note: 'basic_string<char>' is not literal because it is not an aggregate and has no constexpr constructors other than copy or move constructors
85 | class basic_string
| ^
1 error generated.
```
Seems correct - std::string is not very const. Fix by changing it to raw
string which should construct temporary std::string& correctly.1 parent ad2f16b commit 5d1b63e
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
0 commit comments