[Botan-devel] Problems Using 1.9.12 on Windows 7 with Visual Studio 10.

Jack Lloyd lloyd at randombit.net
Fri Jan 14 13:32:57 EST 2011

On Fri, Jan 14, 2011 at 06:11:26PM +0000, larry_lindstrom at comcast.net wrote:

> My code doesn't include this header, but my code, and many functions provided by Microsoft, do use min and max. 
> Since I've started using Botan I've learned that "using namespace" is considered bad practice by many. They suggest we slap "std:" in front of everything from the std namespace, and do the corresponding action for identifiers from other namespaces. 
> Would following this admonition resolve my problem? 

There is a macro you can define to disable setting the macros (NOMINMAX, I think it is?)
Alternately, you can just #undef min and max before including any Botan headers.

More information about the botan-devel mailing list