/home/ubuntu/project/options/ccapi/example/src/custom_service_class/main.cpp:32:8: error: ‘void ccapi::ExecutionManagementServiceDeribitCustom::processSuccessfulTextMessageRest(int, const ccapi::Request&, const string&, const TimePoint&, ccapi::Queue<ccapi::Event>*)’ marked ‘override’, but does not override
void processSuccessfulTextMessageRest(int statusCode, const Request& request, const std::string& textMessage, const TimePoint& timeReceived,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/ubuntu/project/options/ccapi/example/src/custom_service_class/main.cpp: In constructor ‘ccapi::ExecutionManagementServiceDeribitCustom::ExecutionManagementServiceDeribitCustom(std::function<void(ccapi::Event&, ccapi::Queue<ccapi::Event>*)>, ccapi::SessionOptions, ccapi::SessionConfigs, ccapi::Service::ServiceContextPtr)’:
/home/ubuntu/project/options/ccapi/example/src/custom_service_class/main.cpp:15:106: error: no matching function for call to ‘ccapi::ExecutionManagementServiceDeribit::ExecutionManagementServiceDeribit(std::function<void(ccapi::Event&, ccapi::Queue<ccapi::Event>*)>&, ccapi::SessionOptions&, ccapi::SessionConfigs&, ccapi::Service::ServiceContextPtr&)’
: ExecutionManagementServiceDeribit(eventHandler, sessionOptions, sessionConfigs, serviceContextPtr) {}
^
In file included from /home/ubuntu/project/options/ccapi/include/ccapi_cpp/ccapi_session.h:118:0,
from /home/ubuntu/project/options/ccapi/example/src/custom_service_class/main.cpp:1:
/home/ubuntu/project/options/ccapi/include/ccapi_cpp/service/ccapi_execution_management_service_deribit.h:9:3: note: candidate: ccapi::ExecutionManagementServiceDeribit::ExecutionManagementServiceDeribit(std::function<void(ccapi::Event&)>, ccapi::SessionOptions, ccapi::SessionConfigs, ccapi::Service::ServiceContextPtr)
ExecutionManagementServiceDeribit(std::function<void(Event& event)> eventHandler, SessionOptions sessionOptions, SessionConfigs sessionConfigs,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/ubuntu/project/options/ccapi/include/ccapi_cpp/service/ccapi_execution_management_service_deribit.h:9:3: note: no known conversion for argument 1 from ‘std::function<void(ccapi::Event&, ccapi::Queue<ccapi::Event>*)>’ to ‘std::function<void(ccapi::Event&)>’
/home/ubuntu/project/options/ccapi/example/src/custom_service_class/main.cpp: In member function ‘virtual void ccapi::ExecutionManagementServiceDeribitCustom::convertRequestForRestCustom(boost::beast::http::request<boost::beast::http::basic_string_body<char> >&, const ccapi::Request&, const TimePoint&, const string&, const std::map<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char> >&)’:
/home/ubuntu/project/options/ccapi/example/src/custom_service_class/main.cpp:25:48: error: no matching function for call to ‘ccapi::ExecutionManagementServiceDeribitCustom::signRequest(boost::beast::http::request<boost::beast::http::basic_string_body<char> >&, const char [1], const std::map<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char> >&)’
this->signRequest(req, "", credential);
^
In file included from /home/ubuntu/project/options/ccapi/include/ccapi_cpp/ccapi_session.h:118:0,
from /home/ubuntu/project/options/ccapi/example/src/custom_service_class/main.cpp:1:
/home/ubuntu/project/options/ccapi/include/ccapi_cpp/service/ccapi_execution_management_service_deribit.h:65:8: note: candidate: void ccapi::ExecutionManagementServiceDeribit::signRequest(boost::beast::http::request<boost::beast::http::basic_string_body<char> >&, const string&, const TimePoint&, const std::map<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char> >&)
void signRequest(http::request<http::string_body>& req, const std::string& body, const TimePoint& now, const std::map<std::string, std::string>& credential) {
^~~~~~~~~~~
/home/ubuntu/project/options/ccapi/include/ccapi_cpp/service/ccapi_execution_management_service_deribit.h:65:8: note: candidate expects 4 arguments, 3 provided
/home/ubuntu/project/options/ccapi/example/src/custom_service_class/main.cpp: In member function ‘void ccapi::ExecutionManagementServiceDeribitCustom::processSuccessfulTextMessageRest(int, const ccapi::Request&, const string&, const TimePoint&, ccapi::Queue<ccapi::Event>*)’:
/home/ubuntu/project/options/ccapi/example/src/custom_service_class/main.cpp:55:50: error: no match for call to ‘(std::function<void(ccapi::Event&)>) (ccapi::Event&, ccapi::Queue<ccapi::Event>*&)’
this->eventHandler(event, eventQueuePtr);
^
In file included from /usr/include/c++/7/functional:58:0,
from /home/ubuntu/project/options/ccapi/include/ccapi_cpp/service/ccapi_execution_management_service.h:5,
from /home/ubuntu/project/options/ccapi/include/ccapi_cpp/service/ccapi_execution_management_service_deribit.h:5,
from /home/ubuntu/project/options/ccapi/include/ccapi_cpp/ccapi_session.h:118,
from /home/ubuntu/project/options/ccapi/example/src/custom_service_class/main.cpp:1:
/usr/include/c++/7/bits/std_function.h:701:5: note: candidate: _Res std::function<_Res(_ArgTypes ...)>::operator()(_ArgTypes ...) const [with _Res = void; _ArgTypes = {ccapi::Event&}]
function<_Res(_ArgTypes...)>::
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/7/bits/std_function.h:701:5: note: candidate expects 1 argument, 2 provided
/home/ubuntu/project/options/ccapi/example/src/custom_service_class/main.cpp:59:138: error: no matching function for call to ‘ccapi::ExecutionManagementServiceDeribitCustom::processSuccessfulTextMessageRest(int&, const ccapi::Request&, const string&, const TimePoint&, ccapi::Queue<ccapi::Event>*&)’
ExecutionManagementServiceDeribit::processSuccessfulTextMessageRest(statusCode, request, textMessage, timeReceived, eventQueuePtr);
^
In file included from /home/ubuntu/project/options/ccapi/include/ccapi_cpp/service/ccapi_execution_management_service_deribit.h:5:0,
from /home/ubuntu/project/options/ccapi/include/ccapi_cpp/ccapi_session.h:118,
from /home/ubuntu/project/options/ccapi/example/src/custom_service_class/main.cpp:1:
/home/ubuntu/project/options/ccapi/include/ccapi_cpp/service/ccapi_execution_management_service.h:79:14: note: candidate: virtual void ccapi::ExecutionManagementService::processSuccessfulTextMessageRest(int, const ccapi::Request&, const string&, const TimePoint&)
virtual void processSuccessfulTextMessageRest(int statusCode, const Request& request, const std::string& textMessage, const TimePoint& timeReceived) override {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/ubuntu/project/options/ccapi/include/ccapi_cpp/service/ccapi_execution_management_service.h:79:14: note: candidate expects 4 arguments, 5 provided
In file included from /usr/include/x86_64-linux-gnu/c++/7/bits/c++allocator.h:33:0,
from /usr/include/c++/7/bits/allocator.h:46,
from /usr/include/c++/7/string:41,
from /usr/include/c++/7/stdexcept:39,
from /usr/include/c++/7/array:39,
from /usr/include/c++/7/tuple:39,
from /usr/include/c++/7/functional:54,
from /home/ubuntu/project/options/ccapi/include/ccapi_cpp/service/ccapi_execution_management_service.h:5,
from /home/ubuntu/project/options/ccapi/include/ccapi_cpp/service/ccapi_execution_management_service_deribit.h:5,
from /home/ubuntu/project/options/ccapi/include/ccapi_cpp/ccapi_session.h:118,
from /home/ubuntu/project/options/ccapi/example/src/custom_service_class/main.cpp:1:
/usr/include/c++/7/ext/new_allocator.h: In instantiation of ‘void __gnu_cxx::new_allocator<_Tp>::construct(_Up*, _Args&& ...) [with _Up = ccapi::ExecutionManagementServiceDeribitCustom; _Args = {std::function<void(ccapi::Event&)>&, ccapi::SessionOptions&, ccapi::SessionConfigs&, std::shared_ptr<ccapi::ServiceContext>&}; _Tp = ccapi::ExecutionManagementServiceDeribitCustom]’:
/usr/include/c++/7/bits/alloc_traits.h:475:4: required from ‘static void std::allocator_traits<std::allocator<_CharT> >::construct(std::allocator_traits<std::allocator<_CharT> >::allocator_type&, _Up*, _Args&& ...) [with _Up = ccapi::ExecutionManagementServiceDeribitCustom; _Args = {std::function<void(ccapi::Event&)>&, ccapi::SessionOptions&, ccapi::SessionConfigs&, std::shared_ptr<ccapi::ServiceContext>&}; _Tp = ccapi::ExecutionManagementServiceDeribitCustom; std::allocator_traits<std::allocator<_CharT> >::allocator_type = std::allocator<ccapi::ExecutionManagementServiceDeribitCustom>]’
/usr/include/c++/7/bits/shared_ptr_base.h:526:39: required from ‘std::_Sp_counted_ptr_inplace<_Tp, _Alloc, _Lp>::_Sp_counted_ptr_inplace(_Alloc, _Args&& ...) [with _Args = {std::function<void(ccapi::Event&)>&, ccapi::SessionOptions&, ccapi::SessionConfigs&, std::shared_ptr<ccapi::ServiceContext>&}; _Tp = ccapi::ExecutionManagementServiceDeribitCustom; _Alloc = std::allocator<ccapi::ExecutionManagementServiceDeribitCustom>; __gnu_cxx::_Lock_policy _Lp = (__gnu_cxx::_Lock_policy)2]’
/usr/include/c++/7/bits/shared_ptr_base.h:637:4: required from ‘std::__shared_count<_Lp>::__shared_count(std::_Sp_make_shared_tag, _Tp*, const _Alloc&, _Args&& ...) [with _Tp = ccapi::ExecutionManagementServiceDeribitCustom; _Alloc = std::allocator<ccapi::ExecutionManagementServiceDeribitCustom>; _Args = {std::function<void(ccapi::Event&)>&, ccapi::SessionOptions&, ccapi::SessionConfigs&, std::shared_ptr<ccapi::ServiceContext>&}; __gnu_cxx::_Lock_policy _Lp = (__gnu_cxx::_Lock_policy)2]’
/usr/include/c++/7/bits/shared_ptr_base.h:1295:35: required from ‘std::__shared_ptr<_Tp, _Lp>::__shared_ptr(std::_Sp_make_shared_tag, const _Alloc&, _Args&& ...) [with _Alloc = std::allocator<ccapi::ExecutionManagementServiceDeribitCustom>; _Args = {std::function<void(ccapi::Event&)>&, ccapi::SessionOptions&, ccapi::SessionConfigs&, std::shared_ptr<ccapi::ServiceContext>&}; _Tp = ccapi::ExecutionManagementServiceDeribitCustom; __gnu_cxx::_Lock_policy _Lp = (__gnu_cxx::_Lock_policy)2]’
/usr/include/c++/7/bits/shared_ptr.h:344:64: required from ‘std::shared_ptr<_Tp>::shared_ptr(std::_Sp_make_shared_tag, const _Alloc&, _Args&& ...) [with _Alloc = std::allocator<ccapi::ExecutionManagementServiceDeribitCustom>; _Args = {std::function<void(ccapi::Event&)>&, ccapi::SessionOptions&, ccapi::SessionConfigs&, std::shared_ptr<ccapi::ServiceContext>&}; _Tp = ccapi::ExecutionManagementServiceDeribitCustom]’
/usr/include/c++/7/bits/shared_ptr.h:690:14: required from ‘std::shared_ptr<_Tp> std::allocate_shared(const _Alloc&, _Args&& ...) [with _Tp = ccapi::ExecutionManagementServiceDeribitCustom; _Alloc = std::allocator<ccapi::ExecutionManagementServiceDeribitCustom>; _Args = {std::function<void(ccapi::Event&)>&, ccapi::SessionOptions&, ccapi::SessionConfigs&, std::shared_ptr<ccapi::ServiceContext>&}]’
/usr/include/c++/7/bits/shared_ptr.h:706:39: required from ‘std::shared_ptr<_Tp> std::make_shared(_Args&& ...) [with _Tp = ccapi::ExecutionManagementServiceDeribitCustom; _Args = {std::function<void(ccapi::Event&)>&, ccapi::SessionOptions&, ccapi::SessionConfigs&, std::shared_ptr<ccapi::ServiceContext>&}]’
/home/ubuntu/project/options/ccapi/example/src/custom_service_class/main.cpp:86:91: required from here
/usr/include/c++/7/ext/new_allocator.h:136:4: error: no matching function for call to ‘ccapi::ExecutionManagementServiceDeribitCustom::ExecutionManagementServiceDeribitCustom(std::function<void(ccapi::Event&)>&, ccapi::SessionOptions&, ccapi::SessionConfigs&, std::shared_ptr<ccapi::ServiceContext>&)’
{ ::new((void *)__p) _Up(std::forward<_Args>(__args)...); }
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/ubuntu/project/options/ccapi/example/src/custom_service_class/main.cpp:13:3: note: candidate: ccapi::ExecutionManagementServiceDeribitCustom::ExecutionManagementServiceDeribitCustom(std::function<void(ccapi::Event&, ccapi::Queue<ccapi::Event>*)>, ccapi::SessionOptions, ccapi::SessionConfigs, ccapi::Service::ServiceContextPtr)
ExecutionManagementServiceDeribitCustom(std::function<void(Event&, Queue<Event>*)> eventHandler, SessionOptions sessionOptions,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/ubuntu/project/options/ccapi/example/src/custom_service_class/main.cpp:13:3: note: no known conversion for argument 1 from ‘std::function<void(ccapi::Event&)>’ to ‘std::function<void(ccapi::Event&, ccapi::Queue<ccapi::Event>*)>’
src/custom_service_class/CMakeFiles/custom_service_class.dir/build.make:75: recipe for target 'src/custom_service_class/CMakeFiles/custom_service_class.dir/main.cpp.o' failed
make[2]: *** [src/custom_service_class/CMakeFiles/custom_service_class.dir/main.cpp.o] Error 1
CMakeFiles/Makefile2:723: recipe for target 'src/custom_service_class/CMakeFiles/custom_service_class.dir/all' failed
make[1]: *** [src/custom_service_class/CMakeFiles/custom_service_class.dir/all] Error 2
Makefile:90: recipe for target 'all' failed
make: *** [all] Error 2