Boost logo

Boost :

From: David Abrahams (david.abrahams_at_[hidden])
Date: 2002-01-07 09:24:56


----- Original Message -----
From: "vvasta" <vvasta_at_[hidden]>

> I'm trying to use iterator adaptor but I got a couple of errors. My
> old compiler complains because the template
> function "function_requires" in concept_check.hpp doesn't use the
> template parameter in the function parameter list. Is is possible to
> change the declaration to something like:
>
> template <class Concept>
> inline void function_requires(type<Concept> t = type<Concept>())

I would rather write

    template <class Concept>
    inline void function_requires(type<Concept>* = 0)

which is a standard trick for VC++. Since VC6 /needs/ this workaround to
avoid silent errors, I guess I'd consider it a trivial patch.

Jeremy?


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