diff options
author | David Crocker <dcrocker@eschertech.com> | 2021-02-17 13:06:35 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2021-02-17 13:06:35 +0300 |
commit | 1b49872b6eaa90ab2517666de22ebf195b7503bc (patch) | |
tree | ed8c1f05b59436f3f89e817cc095663ed841ecdb /src/RepRap.cpp | |
parent | a6679d1195034aeaf81fd2c4d30b6bd9e5d56e49 (diff) |
Use stdext::inplace_function insteaed of std::function
Diffstat (limited to 'src/RepRap.cpp')
-rw-r--r-- | src/RepRap.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/RepRap.cpp b/src/RepRap.cpp index 2b27f7e7..b234939e 100644 --- a/src/RepRap.cpp +++ b/src/RepRap.cpp @@ -2286,7 +2286,7 @@ GCodeResult RepRap::GetFileInfoResponse(const char *filename, OutputBuffer *&res // Helper functions to write JSON arrays // Append float array using 1 decimal place -void RepRap::AppendFloatArray(OutputBuffer *buf, const char *name, size_t numValues, std::function<float(size_t)> func, unsigned int numDecimalDigits) noexcept +void RepRap::AppendFloatArray(OutputBuffer *buf, const char *name, size_t numValues, stdext::inplace_function<float(size_t)> func, unsigned int numDecimalDigits) noexcept { if (name != nullptr) { @@ -2304,7 +2304,7 @@ void RepRap::AppendFloatArray(OutputBuffer *buf, const char *name, size_t numVal buf->cat(']'); } -void RepRap::AppendIntArray(OutputBuffer *buf, const char *name, size_t numValues, std::function<int(size_t)> func) noexcept +void RepRap::AppendIntArray(OutputBuffer *buf, const char *name, size_t numValues, stdext::inplace_function<int(size_t)> func) noexcept { if (name != nullptr) { @@ -2322,7 +2322,7 @@ void RepRap::AppendIntArray(OutputBuffer *buf, const char *name, size_t numValue buf->cat(']'); } -void RepRap::AppendStringArray(OutputBuffer *buf, const char *name, size_t numValues, std::function<const char *(size_t)> func) noexcept +void RepRap::AppendStringArray(OutputBuffer *buf, const char *name, size_t numValues, stdext::inplace_function<const char *(size_t)> func) noexcept { if (name != nullptr) { |