Code: Select all
MagickBooleanType MagickSetSize(MagickWand *wand,
/* const */ size_t columns, /* const */ size_t rows)
Code: Select all
MagickBooleanType MagickSetSize(MagickWand *wand,
/* const */ size_t columns, /* const */ size_t rows)
Code: Select all
/* declaration */
void foo (int);
/* implementation,works even in C++ */
void foo (int const x) { }
Since the only developer that is concerned about such things is the implementor of this particular function, I assume that you have the implementor in mind. However, even if you declaremagick wrote:Well again, const is meaningful to a developer. It tells the developer the value does not change in the scope of the method and we also want the docs to match exactly the signature of the method.
Code: Select all
void f(int const);
Code: Select all
void f(int);