[botan-devel] Why is max_keylength_of() deprecated and how to avoid using?

William K. Foster wkf at alum.mit.edu
Tue Jul 26 09:07:43 EDT 2011


Hello,

I get the following warning when compiling v1.10.0:

In file included from ../../src/Botan-1.10.0/build/include/botan/rng.h:12,
                 from
../../src/Botan-1.10.0/build/include/botan/libstate.h:14,
                 from
../../src/Botan-1.10.0/build/include/botan/lookup.h:11,
                 from ../../src/Botan-1.10.0/build/include/botan/botan.h:12,
                 from ../../src/param.h:27,
                 from param.cpp:26:
../../src/Botan-1.10.0/build/include/botan/exceptn.h: In constructor
`Botan::Integrity_Failure::Integrity_Failure(const std::string&)':
../../src/Botan-1.10.0/build/include/botan/exceptn.h:149: warning:
declaration of 'what' shadows a member of 'this'
gmake[1]: *** [ARCH.linux_26_i86/debug/util.o] Error 1

I worked around it by renaming the argument from 'what' to 'what_'.

I imagine others see this too and suggest a rename of the argument is
appropriate.

Thanks.

-William
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.randombit.net/pipermail/botan-devel/attachments/20110726/b6b966bc/attachment.html>


More information about the botan-devel mailing list