Skip to content

Commit

Permalink
Avoid segfault in older compilers
Browse files Browse the repository at this point in the history
  • Loading branch information
gergondet committed Sep 26, 2022
1 parent 9a5a8d5 commit 52b2a69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/mc_rtc/ConfigurationHelpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ std::vector<T> fromVectorOrElement(const mc_rtc::Configuration & config,
try
{
T elem = c;
return {elem};
return std::vector<T>(1, elem);
}
catch(mc_rtc::Configuration::Exception & notAnElem)
{ // If that fails as well, return the default
Expand Down

0 comments on commit 52b2a69

Please # to comment.