Home Help Center

Streaming:how could I convert a vector<bool> to pair< const bool*, const bool* >?

cxq2003cxq2003 Member Gem ChenOrganization: University of National DefenceProject: monitor 100+ Clients throught local area network ✭✭
Ice's Streaming interface support the followings:

bool* readBoolSeq(std::pair< const bool*, const bool* >&);
void writeBoolSeq(const bool*, const bool*);

Question is :
how could I convert a vector<bool> to pair< const bool*, const bool* >?

using &vec_bools[0] or &*vec_bools.begin() can not compile
I also could not invoke "void writeBoolSeq(const std::vector< bool >&);" because the C interface.
Sign In or Register to comment.