Problem with argument of type std::vector<std::string>.

RCF support and general discussion.
Post Reply
andrei1985
Posts: 2
Joined: Fri Aug 23, 2013 8:27 pm

Problem with argument of type std::vector<std::string>.

Post by andrei1985 »

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.

jarl
Posts: 238
Joined: Mon Oct 03, 2011 4:53 am
Contact:

Re: Problem with argument of type std::vector<std::string>.

Post by jarl »

Hi Andrei,

You need to include serialization code for std::vector<>:

Code: Select all

#include <SF/vector.hpp>
, before you define the interface.

You can read more about serialization in the User Guide:

http://www.deltavsoft.com/doc/rcf_user_ ... ation.html
Kind Regards

Jarl Lindrud
Delta V Software
http://www.deltavsoft.com

Post Reply