Fix includes of C++ header
[src/app-framework-binder.git] / include / afb / c++ / binding-wrap.hpp
index 9a9ad85..f94d1bc 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2016-2019 "IoT.bzh"
+ * Copyright (C) 2015-2020 "IoT.bzh"
  * Author: José Bollo <jose.bollo@iot.bzh>
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -21,6 +21,7 @@
 #include <cstdlib>
 #include <cstdarg>
 #include <functional>
+#include <string>
 
 /* ensure version */
 #ifndef AFB_BINDING_VERSION
@@ -782,7 +783,7 @@ constexpr afb_verb_t verb(
                session,
                auth,
                glob,
-               (void*)(&callback)
+               *(void**)(&callback)
        );
 }