hlr53, dopdahl - I think I found a solution for you guys. Try this and see if it fixes it: insert this-> in front of length() and c_str() at the offending lines:
bool StartsWith(const typename S::value_type *prefix)
{
S sprefix(prefix);
size_t prefixLen = sprefix.length();
return this->length() >= prefixLen
&& memcmp(prefix, this->c_str(), prefixLen * sizeof(S::value_type)) == 0;
}
Excuse my ignorance but which file? (Currently rereading Thinking in C++ and trying to get up to more speed)
Sorry - that's in StringUtil.h - if you double-click on one of the error lines in the output window (a line that looks like "...StringUtil.h(127): error: ..."), it'll take you to the right spot.
But you might want to hold off for a day or two... I've got a spare machine that I'm going to try setting up a new dev env on. Let me see if I can get it going there - hopefully I can work through this and the other issues and get it cleaned up enough that it'll just work for you.




Top











are all trademarks of VPFORUMS.