From d68a44c8c841d9b37f345bb48ae85b05a2ce63cf Mon Sep 17 00:00:00 2001 From: Sukrit Kalra Date: Thu, 4 Apr 2024 11:39:22 -0700 Subject: [PATCH] [BUG] Fix issue with compilation on g++-11 --- schedulers/tetrisched/src/Expression.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/schedulers/tetrisched/src/Expression.cpp b/schedulers/tetrisched/src/Expression.cpp index 269db6ca..0311b96c 100644 --- a/schedulers/tetrisched/src/Expression.cpp +++ b/schedulers/tetrisched/src/Expression.cpp @@ -225,12 +225,12 @@ ExpressionTimeBounds Expression::getTimeBounds() const { // The start and end time ranges of a LessThanExpression are defined // by the start of the first child and the end of the second. - return { - .startTimeRange = children[0]->getTimeBounds().startTimeRange, - .endTimeRange = children[1]->getTimeBounds().endTimeRange, - .duration = children[0]->getTimeBounds().duration + - children[1]->getTimeBounds().duration, - }; + return ExpressionTimeBounds( + children[0]->getTimeBounds().startTimeRange, + children[1]->getTimeBounds().endTimeRange, + children[0]->getTimeBounds().duration + + children[1]->getTimeBounds().duration, + ); } else { // For multiple children, we merge their time bounds, and find the // minimum duration. @@ -267,11 +267,11 @@ ExpressionTimeBounds Expression::getTimeBounds() const { } } - return { - .startTimeRange = startTimeRange, - .endTimeRange = endTimeRange, - .duration = minDuration, - }; + return ExpressionTimeBounds( + startTimeRange, + endTimeRange, + minDuration, + ); } } }