[Tizen 6.0] Support build with GCC 9.2 77/221677/1
authorMikhail Kashkarov <m.kashkarov@partner.samsung.com>
Mon, 16 Dec 2019 05:04:18 +0000 (08:04 +0300)
committerSangwan Kwon <sangwan.kwon@samsung.com>
Tue, 7 Jan 2020 03:37:20 +0000 (12:37 +0900)
wp-loader.cpp:34:49: error: 'function' in namespace 'std' does not name
                     a template type
   34 | int getValueCstr(std::string &value, const std::function<int(const char **)> &getfunc)
      |                                                 ^~~~~~~~
wp-loader.cpp:29:1: note: 'std::function' is defined in header '<functional>';
                    did you forget to '#include <functional>'?
   28 | #include "common/exception.h"
  +++ |+#include <functional>

Change-Id: I7d4d627cfef2356a2061f6b5e7051e34a68fcee1
Signed-off-by: Mikhail Kashkarov <m.kashkarov@partner.samsung.com>
Signed-off-by: Sangwan Kwon <sangwan.kwon@samsung.com>
src/framework/service/cs-loader.cpp
src/framework/service/wp-loader.cpp

index 487e6cb..6f3a7d5 100644 (file)
@@ -21,6 +21,7 @@
  */
 #include "service/cs-loader.h"
 
+#include <functional>
 #include <stdexcept>
 #include <dlfcn.h>
 
index d1021b6..7e8a3bb 100644 (file)
@@ -21,6 +21,7 @@
  */
 #include "service/wp-loader.h"
 
+#include <functional>
 #include <stdexcept>
 #include <dlfcn.h>