
14 Jul
2004
14 Jul
'04
4:11 p.m.
Matthias Troyer wrote:
How would you do a BOOST_WORKAROUND in a template code where you might not know the value of the static constant? I think that any constant depending on a template parameter will still have to be treated like it is done now.
Sorry but I fail to understand what you are saying. Anyway what I suggest is to use BOOST_WORKAROUND for implementing the enum-trick wherever BOOST_STATIC_CONSTANT would use the enum-trick in case BOOST_NO_INCLASS_MEMBER_INITIALISATION would have been defined.