2009/11/03

Quicky: Multiple compilers means less debugging

I've been at the C++ game the past view days and we all have seen those nasty STL errors that don't give you a clue as to what the problem is. Such as

Error 1 error C2248: 'std::basic_ios<_Elem,_Traits>::basic_ios' : cannot access private member declared in class 'std::basic_ios<_Elem,_Traits>'

I have found that compiling under multiple compilers will give you just enough info to actually find the error. In my case I was trying to add a std::fstream to a std::vector. So the error was technically correct, but didn't indicate that you cannot do that.

No comments:

Post a Comment