From 3f3538e895a97759b5bb49f5de323aba733dd4ee Mon Sep 17 00:00:00 2001 From: Lourens Veen Date: Fri, 2 Aug 2024 16:32:40 +0200 Subject: [PATCH] Fix compiling with GCC 14 --- libmuscle/cpp/src/libmuscle/tests/test_instance.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libmuscle/cpp/src/libmuscle/tests/test_instance.cpp b/libmuscle/cpp/src/libmuscle/tests/test_instance.cpp index 3471ffc4..7ff08ef0 100644 --- a/libmuscle/cpp/src/libmuscle/tests/test_instance.cpp +++ b/libmuscle/cpp/src/libmuscle/tests/test_instance.cpp @@ -200,7 +200,7 @@ struct libmuscle_instance_base : ::testing::Test, ConnectedPortManagerFixture { std::vector()); MockSettingsManager::return_value.get_setting.side_effect = []( - Reference const &, Reference const &) -> SettingValue { + Reference const &, Reference const &) -> const SettingValue & { throw std::out_of_range("No settings set in mock, unset or replace side_effect"); }; }