CuraEngine/CuraEngine-5.4.0-fmt10.patch
2023-12-05 17:58:56 +01:00

25 lines
474 B
Diff

diff --git a/include/settings/types/LayerIndex.h b/include/settings/types/LayerIndex.h
index 1e48bbc..adcffaf 100644
--- a/include/settings/types/LayerIndex.h
+++ b/include/settings/types/LayerIndex.h
@@ -5,6 +5,7 @@
#define LAYERINDEX_H
#include <functional>
+#include <fmt/format.h>
namespace cura
{
@@ -109,6 +110,12 @@ struct LayerIndex
int value = 0;
};
+constexpr auto format_as(LayerIndex index)
+{
+ return index.value;
+}
+
+
}
namespace std