Original Post
We recently converted our 20 yr. old project to unicode. Yikes. After fixing upwards of 10,000 errors so it would at least compile, there inevitably still many problems. A lot of these problems we won't find until something doesn't work at run time, and even then you don't always spot the issue. However, it is obvious after painstakingly fixing some of the initial bugs, that we could catch most of the problems at compile time if there was an easy way to convert all the C-style casts to C++ static_casts. Then any errors could be examined to see if there was some ignorance involved that will cause run-time problems, or if it really, really should be a reinterpret_cast (or occasionally a dynamic cast). So does anyone know of something (preferably free) that can refactor all C-style casts to say, a static_cast? I know the likelihood is slim, but just thought I'd ask, as there are 10s of thousands of them. (The ones where we cast const char * variables to LPCTSTR are the worst.....) Thanks