diff --git a/Framework/Core/include/Framework/DeviceMetricsInfo.h b/Framework/Core/include/Framework/DeviceMetricsInfo.h index 30387f4e6becf..d55f1cb44f71d 100644 --- a/Framework/Core/include/Framework/DeviceMetricsInfo.h +++ b/Framework/Core/include/Framework/DeviceMetricsInfo.h @@ -18,7 +18,7 @@ #include #include #include -#include +#include #include #include @@ -217,7 +217,7 @@ struct DeviceMetricsInfoHelpers { info.changed.clear(); } } - static size_t metricsStorageSize(gsl::span infos) + static size_t metricsStorageSize(std::span infos) { // Count the size of the metrics storage size_t totalSize = 0; diff --git a/Framework/GUISupport/src/FrameworkGUIDebugger.cxx b/Framework/GUISupport/src/FrameworkGUIDebugger.cxx index 112797d357458..33e7f794972ad 100644 --- a/Framework/GUISupport/src/FrameworkGUIDebugger.cxx +++ b/Framework/GUISupport/src/FrameworkGUIDebugger.cxx @@ -30,7 +30,6 @@ #include #include -#include #include #include #include @@ -210,8 +209,8 @@ enum MetricTypes { // so that we can display driver and device metrics in the same plot // without an if. struct AllMetricsStore { - gsl::span metrics[TOTAL_TYPES_OF_METRICS]; - gsl::span specs[TOTAL_TYPES_OF_METRICS]; + std::span metrics[TOTAL_TYPES_OF_METRICS]; + std::span specs[TOTAL_TYPES_OF_METRICS]; }; void displaySparks( @@ -376,8 +375,8 @@ void displayDeviceMetrics(const char* label, ImPlotAxisFlags axisFlags = 0; for (size_t si = 0; si < TOTAL_TYPES_OF_METRICS; ++si) { - gsl::span metricsInfos = metricStore.metrics[si]; - gsl::span specs = metricStore.specs[si]; + std::span metricsInfos = metricStore.metrics[si]; + std::span specs = metricStore.specs[si]; for (int di = 0; di < metricsInfos.size(); ++di) { for (size_t mi = 0; mi < metricsInfos[di].metrics.size(); ++mi) { if (state[gmi].visible == false) { @@ -1175,10 +1174,10 @@ std::function getGUIDebugger(std::vector const& infos, AllMetricsStore metricsStore; - metricsStore.metrics[DEVICE_METRICS] = gsl::span(metricsInfos); - metricsStore.metrics[DRIVER_METRICS] = gsl::span(&driverInfo.metrics, 1); - metricsStore.specs[DEVICE_METRICS] = gsl::span(deviceNodesInfos); - metricsStore.specs[DRIVER_METRICS] = gsl::span(driverNodesInfos); + metricsStore.metrics[DEVICE_METRICS] = std::span(metricsInfos); + metricsStore.metrics[DRIVER_METRICS] = std::span(&driverInfo.metrics, 1); + metricsStore.specs[DEVICE_METRICS] = std::span(deviceNodesInfos); + metricsStore.specs[DRIVER_METRICS] = std::span(driverNodesInfos); displayMetrics(guiState, driverInfo, infos, metadata, controls, metricsStore); displayDriverInfo(driverInfo, driverControl);