W
woodbrian77
I've taken the following from a function. The function compiles
using both g++ 4.8 and VC++ 11.
std::vector<std::string*> rep20;
uint32_t elements = buf.Give<uint32_t>();
rep20.reserve(elements);
for (; elements > 0; --elements) {
rep20.push_back(buf.stringGive());
}
stringGive has this signature:
::std::string stringGive ();
I'd expect an error or warning so am wondering what's up
with this. (This code is part of my test code and not
something I'm using in an application.) Tia.
Shalom,
Brian
Ebenezer Enterprises
http://webEbenezer.net
using both g++ 4.8 and VC++ 11.
std::vector<std::string*> rep20;
uint32_t elements = buf.Give<uint32_t>();
rep20.reserve(elements);
for (; elements > 0; --elements) {
rep20.push_back(buf.stringGive());
}
stringGive has this signature:
::std::string stringGive ();
I'd expect an error or warning so am wondering what's up
with this. (This code is part of my test code and not
something I'm using in an application.) Tia.
Shalom,
Brian
Ebenezer Enterprises
http://webEbenezer.net