C ++: Is there a way to avoid redundancy when changing long declarations?

This always pushed me to C and C ++:

There is something like in my header file:

bool UpdateWindow( int w, int h, char bpp, bool force, char* someOtherLongStuff )

Now, if I want to change this for any reason, I have to do it both in the header and in the source file - this is annoying in my opinion.

Is there a way to automate this?

I am using Visual Studio 2010

+5
source share
3 answers

, , , . , , , ( , , , , , , ..), - .

+2

, Visual Assist Wholetomato. , ...

++ - - :)

+2

Not with a standard visual studio. I think you need a refactoring tool like Resharper, but I'm not sure if it will work in C ++. Refactoring for C ++ is a very problem. My best snapshot would be to simply follow the declaration with Ctrl + click on the name and change on both sides.

0
source

All Articles