Boost logo

Boost :

From: Gennaro Prota (gennaro_prota_at_[hidden])
Date: 2003-04-10 11:41:04


A little proposal:

VC++ 6.0 has problems with function templates whose template
parameters don't appear in the function parameter list. Example:

template <typename T>
void run_tests() {...}

int main() {
    run_tests<char>();
    run_tests<int>();
    ...
}

The bug is well-known and documented

http://support.microsoft.com/default.aspx?scid=kb;en-us;240871

and affects, at least, the code in the dynamic_bitset tests and the
code in cast.hpp.

What about adding a suitable workaround macro to the config? For
instance:

 #define BOOST_DUMMY_DEFAULT_ARGUMENT(t) t* = 0

Genny.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk