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:
authorDavid Crocker <dcrocker@eschertech.com>2021-02-17 13:06:35 +0300
committerDavid Crocker <dcrocker@eschertech.com>2021-02-17 13:06:35 +0300
commit1b49872b6eaa90ab2517666de22ebf195b7503bc (patch)
treeed8c1f05b59436f3f89e817cc095663ed841ecdb /src/Tools/Tool.cpp
parenta6679d1195034aeaf81fd2c4d30b6bd9e5d56e49 (diff)
Use stdext::inplace_function insteaed of std::function
Diffstat (limited to 'src/Tools/Tool.cpp')
-rw-r--r--src/Tools/Tool.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Tools/Tool.cpp b/src/Tools/Tool.cpp
index 3c247b97..640e22ed 100644
--- a/src/Tools/Tool.cpp
+++ b/src/Tools/Tool.cpp
@@ -666,7 +666,7 @@ void Tool::SetSpindleRpm(uint32_t rpm) THROWS(GCodeException)
}
}
-void Tool::IterateExtruders(std::function<void(unsigned int)> f) const noexcept
+void Tool::IterateExtruders(stdext::inplace_function<void(unsigned int)> f) const noexcept
{
for (size_t i = 0; i < driveCount; ++i)
{
@@ -674,7 +674,7 @@ void Tool::IterateExtruders(std::function<void(unsigned int)> f) const noexcept
}
}
-void Tool::IterateHeaters(std::function<void(int)> f) const noexcept
+void Tool::IterateHeaters(stdext::inplace_function<void(int)> f) const noexcept
{
for (size_t i = 0; i < heaterCount; ++i)
{