Boost logo

Boost :

From: Daniel Frey (daniel.frey_at_[hidden])
Date: 2003-02-16 12:49:35


Dave Gomboc wrote:
>
> > See also the discussion about a "general coding guideline" to "always
> > provide a name for template parameters". Here, the maintainer already
> > did the right thing when he received the patch.
>
> If the maintainer hid the compiler brokenness completely, then they did
> the wrong thing. If they didn't, they used an #ifdef (via
> BOOST_WORKAROUND).

So you would prefer

#if BOOST_WORKAROUND(__HP_aCC, <= 33900)
    template<bool cond, typename T> struct enable_if;
#elif BOOST_WORKAROUND(__VisualAge, <= 12345) // Dummy values
    template<bool, typename T> struct enable_if;
#else
    template<bool, typename> struct enable_if;
#endif

over

template<bool cond, typename T> struct enable_if;

If that is the case, then we disagree. Do you have any reason to prefer
the first version?

Regards, Daniel

-- 
Daniel Frey
aixigo AG - financial training, research and technology
Schloß-Rahe-Straße 15, 52072 Aachen, Germany
fon: +49 (0)241 936737-42, fax: +49 (0)241 936737-99
eMail: daniel.frey_at_[hidden], web: http://www.aixigo.de

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