On 2/7/07, Robert Ryan <[EMAIL PROTECTED]> wrote:
#include "../../std_lib_facilities.h"
int main()
try {
vector<char> v(5); for(int i = 0; 0<v.sizez(); ++i);
return 0;
}
catch(exception& e) {
cerr << "error: " << e.what() << '\n';
keep_window_open();
return 1;
}
catch( ... ) {
cerr << "Oops: unknown exception!\n";
keep_window_open();
return 1;
}
the error i get is
vector<char> v(5); for(int i = 0; 0<v.sizez(); ++i);
sizez: is not a member of 'Vector <T>'
This one is obvious... did you check your STL documentation on what methods
are available for the vector template class? Hint: you have one more z in
the method than you need...
-- Brett
------------------------------------------------------------
"In the rhythm of music a secret is hidden;
If I were to divulge it, it would overturn the world."
-- Jelaleddin Rumi