Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

This has always bugged me with C and C++:

In my header file I have something like:

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

Now, if I want to change that for whatever reason, I have to do so in both header and source file - that's annoying in my opinion.

Is there a way to automate this?

I'm using Visual Studio 2010

like image 981
RajX Avatar asked Oct 13 '22 21:10

RajX


1 Answers

I think I got it running with Visual Assist from Wholetomato. It's commercial but you could give it a try...

C++ was a long time ago - at least for me :)

like image 166
TottiW Avatar answered Oct 18 '22 03:10

TottiW