Hello!
I need to pass some vectors of strings through RCF but VS2012 sais:
error C2039: 'serialize' : is not a member of 'std::vector<_Ty>' d:\cpp projects\bbbridge\bbbridge\include\sf\serializer.hpp
Here is my interface declaration:
RCF_BEGIN(I_BBtoDBPriceUpdates, "BBtoDBPriceUpdates")
RCF_METHOD_V4(void, BBtoDB_updateADRPrices, const std::vector<string>&, const string&, const string&, const string&)
RCF_METHOD_V4(void, BBtoDB_updateCurrencyRates, const std::vector<string>&, const string&, const string&, const string&)
RCF_METHOD_V4(void, BBtoDB_updateETFPrices, const std::vector<string>&, const string&, const string&, const string&)
RCF_METHOD_V4(void, BBtoDB_updateFuturesPrices, const std::vector<string>&, const string&, const string&, const string&)
RCF_METHOD_V4(void, BBtoDB_updateIndexPrices, const std::vector<string>&, const string&, const string&, const string&)
RCF_METHOD_V4(void, BBtoDB_updateOptionPrices, const std::vector<string>&, const string&, const string&, const string&)
RCF_METHOD_V4(void, BBtoDB_updateStockPrices, const std::vector<string>&, const string&, const string&, const string&)
RCF_END(I_BBtoDBPriceUpdates)
What can I do to make it work?
Thank you!
Andrei.
Problem with argument of type std::vector<std::string>.
-
- Posts: 2
- Joined: Fri Aug 23, 2013 8:27 pm
Re: Problem with argument of type std::vector<std::string>.
Hi Andrei,
You need to include serialization code for std::vector<>:
, before you define the interface.
You can read more about serialization in the User Guide:
http://www.deltavsoft.com/doc/rcf_user_ ... ation.html
You need to include serialization code for std::vector<>:
Code: Select all
#include <SF/vector.hpp>
You can read more about serialization in the User Guide:
http://www.deltavsoft.com/doc/rcf_user_ ... ation.html