Jon Stewart on 19 Aug 2003 00:09:14 -0000 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: [ALACPP] picky compiler or bad code? |
> The following code: > > mFiles.resize(FRAME_COUNT*2); > > std::generate(static_cast<takemgr::PathVector::iterator>(&mFiles[FRAME_COUNT] > ), > mFiles.end(), TestFileGenerator(mDir)); > > did not require the "static_cast" in gcc 2.96, but did in gcc 3.22. Is my > code evil on its face or is gcc just pickier nowadays? It depends. Is takemgr::PathVector::iterator a pointer? Jon -- Jon Stewart Advanced Los Angeles C++ stew1@xxxxxxxxxxx http://www.alacpp.org _______________________________________________ alacpp mailing list alacpp@xxxxxxxxxxx http://lists.ellipsis.cx/mailman/listinfo/alacpp