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

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;
    template<bool, typename> struct enable_if;


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:

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