1. mgr is dependent type, not expected to be a template - so it parses as a non
template and T<..> () is invalid for anything except a template: [temp.dep.type]
message-service.h:101:18: error: expected primary-expression before '>' token
101 | mgr.Register<Msg>([this](const Msg & msg) {
|
2. Add missing include:
obj.h:33:44: error: 'function' is not a member of 'std'
33 | typedef std::unique_ptr<EVP_PKEY_CTX, std::function<void(EVP_PKEY_CTX *)>>
| ^~~~~~~~
obj.h:28:1: note: 'std::function' is defined in header '<functional>';
did you forget to '#include <functional>'?
27 | #include <data-type.h>
+++ |+#include <functional>
Signed-off-by: Mikhail Kashkarov <m.kashkarov@partner.samsung.com>
* @version 1.0
* @brief Certificate Implmentation.
*/
+#include <functional>
+
#include <openssl/bio.h>
#include <openssl/evp.h>
#include <openssl/pkcs12.h>
* @version 1.0
*/
#pragma once
+#include <functional>
#include <memory>
#include <openssl/evp.h>
#include <malloc.h>
#include <cstring>
#include <new>
+#include <functional>
namespace CKM {
BinaryQueue::BinaryQueue() :
template <typename Mgr>
void MessageService<Msg>::Register(Mgr &mgr)
{
- mgr.Register<Msg>([this](const Msg & msg) {
+ mgr.template Register<Msg>([this](const Msg & msg) {
this->AddMessage(msg);
});
}
* @brief OCSP implementation.
*/
+#include <functional>
#include <string>
#include <ocsp.h>
#include <openssl/pem.h>