Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Duet3D/RepRapFirmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/Tools/Tool.h')
-rw-r--r--src/Tools/Tool.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/Tools/Tool.h b/src/Tools/Tool.h
index c46b39d6..4d2934c4 100644
--- a/src/Tools/Tool.h
+++ b/src/Tools/Tool.h
@@ -31,10 +31,7 @@ Licence: GPL
#include <ObjectModel/ObjectModel.h>
#include <General/FreelistManager.h>
#include <General/NamedEnum.h>
-
-#undef array
-#include <functional>
-#define array _ecv_array
+#include <General/inplace_function.h>
constexpr size_t ToolNameLength = 32; // maximum allowed length for tool names
@@ -112,8 +109,8 @@ public:
bool HasTemperatureFault() const noexcept { return heaterFault; }
- void IterateExtruders(std::function<void(unsigned int)> f) const noexcept;
- void IterateHeaters(std::function<void(int)> f) const noexcept;
+ void IterateExtruders(stdext::inplace_function<void(unsigned int)> f) const noexcept;
+ void IterateHeaters(stdext::inplace_function<void(int)> f) const noexcept;
bool UsesHeater(int8_t heater) const noexcept;
void SetFansPwm(float f) const noexcept;