Archived

This forum has been archived. Please start a new discussion on GitHub.

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

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.