[libcamera-devel] [PATCH] ipa: raspberrypi: Fix compiler error, add functional include
Eric Curtin
ecurtin at redhat.com
Fri Jul 29 11:56:26 CEST 2022
gcc version '12.1.1 20220507 (Red Hat 12.1.1-1)' fails with the
following error on Fedora 36. This file should include the functional
header as it uses std::function.
In file included from ../src/ipa/raspberrypi/controller/rpi/ccm.h:12,
from ../src/ipa/raspberrypi/controller/rpi/ccm.cpp:15:
../src/ipa/raspberrypi/controller/rpi/../pwl.h:97:18: error: ‘std::function’ has not been declared
97 | void map(std::function<void(double x, double y)> f) const;
Signed-off-by: Eric Curtin <ecurtin at redhat.com>
---
src/ipa/raspberrypi/controller/pwl.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/ipa/raspberrypi/controller/pwl.h b/src/ipa/raspberrypi/controller/pwl.h
index 546482cd..aacf6039 100644
--- a/src/ipa/raspberrypi/controller/pwl.h
+++ b/src/ipa/raspberrypi/controller/pwl.h
@@ -6,6 +6,7 @@
*/
#pragma once
+#include <functional>
#include <math.h>
#include <vector>
--
2.37.1
More information about the libcamera-devel
mailing list