Boost logo

Boost :

From: Daryle Walker (darylew_at_[hidden])
Date: 2001-04-29 20:44:02


John Maddock mentioned that the problems with the Boost.CRC code has with MS
VC++ may be from that compiler not handling value-based template arguments
in function templates correctly. He suggested using a static member
function in a class template instead. We should have warnings about that in
config.hpp. How about:

BOOST_NO_VALUE_BASED_ARGUMENT_IN_FUNCTION_TEMPLATE

For parity, we could have macros for the similar problems:

BOOST_NO_VALUE_BASED_ARGUMENT_IN_CLASS_TEMPLATE
BOOST_NO_TEMPLATE_BASED_ARGUMENT_IN_FUNCTION_TEMPLATE
BOOST_NO_TEMPLATE_BASED_ARGUMENT_IN_CLASS_TEMPLATE

Hopefully, few or no compilers should need the first macro in my second
list, since that would prevent the workaround for the macro in my first
list. I think a lot of compilers would need the last two macros in my
second list, though. Since C++ templates were originally made for
abstracting types from code, there shouldn't be any compilers needing
versions of these macros for type-based template arguments.

-- 
Daryle Walker
Mac, Internet, and Video Game Junkie
darylew AT mac DOT com

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