2323#include < optional>
2424#include < qdmi/client.h>
2525#include < string>
26+ #include < utility>
2627#include < vector>
2728
2829namespace mqt {
@@ -45,9 +46,17 @@ NB_MODULE(MQT_CORE_MODULE_NAME, m) {
4546 std::optional<std::string> custom1, std::optional<std::string> custom2,
4647 std::optional<std::string> custom3, std::optional<std::string> custom4,
4748 std::optional<std::string> custom5) {
48- fomac::SessionConfig config{token, authFile, authUrl, username,
49- password, projectId, custom1, custom2,
50- custom3, custom4, custom5};
49+ const fomac::SessionConfig config{.token = std::move (token),
50+ .authFile = std::move (authFile),
51+ .authUrl = std::move (authUrl),
52+ .username = std::move (username),
53+ .password = std::move (password),
54+ .projectId = std::move (projectId),
55+ .custom1 = std::move (custom1),
56+ .custom2 = std::move (custom2),
57+ .custom3 = std::move (custom3),
58+ .custom4 = std::move (custom4),
59+ .custom5 = std::move (custom5)};
5160 new (self) fomac::Session (config);
5261 },
5362 " token" _a = std::nullopt , " auth_file" _a = std::nullopt ,
0 commit comments