diff options
author | Patrick Williams <patrick@stwcx.xyz> | 2023-10-20 05:33:37 +0300 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2023-10-20 17:33:26 +0300 |
commit | 04b0e33c15ba4774a3fc914399594340e87dc706 (patch) | |
tree | 52344172f0c340ecec923549e47c9ea7c5d93020 /static/redfish/v1/$metadata/index.xml | |
parent | 2b5b4dae1925b4b0884b5ed2be0a34dff851372c (diff) | |
download | bmcweb-04b0e33c15ba4774a3fc914399594340e87dc706.tar.xz |
multipart-parser: use emplace_back
clang-17 will have a stronger 'modernize-use-emplace' check and
fails with the following warning:
```
../include/multipart_parser.hpp:308:33: error: use emplace_back instead of push_back [modernize-use-emplace,-warnings-as-errors]
308 | mime_fields.push_back({});
| ^~~~~~~~~~~~
| emplace_back(
```
The vector::emplace_back needed an extra hint, as it would not directly
coerce an initializer-list into the vector's value_type, so we need to
use the value_type constructor.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I74417e0ff5a6e0991bfbe4936b4814f6ee4c1269
Diffstat (limited to 'static/redfish/v1/$metadata/index.xml')
0 files changed, 0 insertions, 0 deletions