Boost logo

Boost :

From: Jason Shirk (jasonsh_at_[hidden])
Date: 2002-03-24 23:39:18

> -----Original Message-----
> From: support-1_at_[hidden] [mailto:support-1_at_[hidden]]
> In theory VC7 (_MSC_VER == 1300) support dependent types in template
> value parameters.
> However there seems to be one cavet to this. When the compiles /Za
> (Disable Language Extensions)
> option is enabled this support seems to be disabled!!!
> The following test code fails with /Za but is accepted with /Ze
> template<class MLCG1, typename MLCG1::result_type val>
> class Fred
> {
> };

You can test _MSC_EXTENSIONS to see if -Ze is being used. If not
defined, then the compilation is using -Za. So you can easily
enable/disable particular workarounds based on this macro if necessary.

FWIW, it's already fixed in VC7.1.

Jason Shirk
VC++ Compiler Team

Boost list run by bdawes at, gregod at, cpdaniel at, john at