I tried building this on OpenSUSE 15.5 with gcc 12, and got the following error.
In file included from /home/alex/repos/noh/src/k2/c_label.cpp:19:
/home/alex/repos/noh/src/k2/c_resourcewatcher.h:19:10: error: ‘function’ in namespace ‘std’ does not name a template type
19 | std::function<void ()> m_fOnReload;
| ^~~~~~~~
/home/alex/repos/noh/src/k2/c_resourcewatcher.h:12:1: note: ‘std::function’ is defined in header ‘<functional>’; did you forget to ‘#include <functional>’?
11 | #include "i_resourcewatcher2.h"
+++ |+#include <functional>
12 | //=============================================================================
Adding that include to i_resourcewatcher2.h fixed that issue for me.
I tried building this on OpenSUSE 15.5 with gcc 12, and got the following error.
Adding that include to
i_resourcewatcher2.h
fixed that issue for me.