Improved error messages generated for thrown exceptions.

Suppressed "gcc -Wall -Wextra -pedantic" and "msvc /W4" warnings.
Updated and rebuilt docs.


[SVN r57451]
This commit is contained in:
John Maddock
2009-11-07 15:32:45 +00:00
parent 898b49fa89
commit 6e1f3dcceb
60 changed files with 662 additions and 436 deletions

View File

@ -67,6 +67,8 @@ public:
what[5].first - base;
return true;
}
private:
IndexClassesPred& operator=(const IndexClassesPred&);
};
void IndexClasses(map_type& m, const std::string& file)

View File

@ -55,11 +55,11 @@ int process_ftp(const char* response, std::string* msg)
istream& getline(istream& is, std::string& s)
{
s.erase();
char c = is.get();
char c = static_cast<char>(is.get());
while(c != '\n')
{
s.append(1, c);
c = is.get();
c = static_cast<char>(is.get());
}
return is;
}

View File

@ -86,8 +86,8 @@ int main(int argc, const char** argv)
return 0;
}
extern const char* pre_expression = "(<)|(>)|\\r";
extern const char* pre_format = "(?1&lt;)(?2&gt;)";
const char* pre_expression = "(<)|(>)|\\r";
const char* pre_format = "(?1&lt;)(?2&gt;)";
const char* expression_text = // preprocessor directives: index 1

View File

@ -86,8 +86,8 @@ int main(int argc, const char** argv)
return 0;
}
extern const char* pre_expression = "(<)|(>)|(&)|\\r";
extern const char* pre_format = "(?1&lt;)(?2&gt;)(?3&amp;)";
const char* pre_expression = "(<)|(>)|(&)|\\r";
const char* pre_format = "(?1&lt;)(?2&gt;)(?3&amp;)";
const char* expression_text = // preprocessor directives: index 1

View File

@ -36,11 +36,11 @@ using namespace std;
istream& getline(istream& is, std::string& s)
{
s.erase();
char c = is.get();
char c = static_cast<char>(is.get());
while(c != '\n')
{
s.append(1, c);
c = is.get();
c = static_cast<char>(is.get());
}
return is;
}

View File

@ -29,11 +29,11 @@ using namespace std;
istream& getline(istream& is, std::string& s)
{
s.erase();
char c = is.get();
char c = static_cast<char>(is.get());
while(c != '\n')
{
s.append(1, c);
c = is.get();
c = static_cast<char>(is.get());
}
return is;
}