Skip to content

Commit

Permalink
fix: manually emplace
Browse files Browse the repository at this point in the history
AppleClang doesn't like the ctor
  • Loading branch information
Nerixyz committed Sep 17, 2024
1 parent 9ab728d commit 8e000e0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/src/MessageBuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -332,9 +332,9 @@ using EmoteMapPtr = std::shared_ptr<const EmoteMap>;

EmoteMapPtr makeEmotes(auto &&...emotes)
{
return std::make_shared<const EmoteMap>(
std::initializer_list<std::pair<const EmoteName, EmotePtr>>{
makeEmote(std::forward<decltype(emotes)>(emotes))...});
auto map = std::make_shared<EmoteMap>();
((map->emplace(makeEmote(std::forward<decltype(emotes)>(emotes)))), ...);
return map;
}

QT_WARNING_PUSH
Expand Down

0 comments on commit 8e000e0

Please sign in to comment.