Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2002-08-19 13:45:37


From: "Rozental, Gennadiy" <Gennadiy_at_[hidden]>

> > > In fact it seems like a feature that
> > > need to be handled through config system: instantiate unused
templates.
>
> > Does your system require that unused templates be instantiated? If so,
> > that's totally unportable. Maybe you should be using something like
> > boost/python/detail/force_instantiate.hpp to instantiate templates that
> > would otherwise be unused.
>
> Sorry. Bad wording. What I meant to say is: this compiler trying to
> instantiate unused template function (I presume it is unused since I do
not
> think you are using BOOST_CHECK_CLOSE tool),

Not on purpose, no.

> implemented in terms of
> close_at_tolerance which is defined in floating_point_comparisons.hpp.
The
> idea is that users of BOOST_CHECK_CLOSE tool will include it themselves.

Ah. Well, I guess that's what's happening. I'm still surprised that it
should be instantiating unused templates; I would think huge amounts of my
own code would be broken if that were the case.

-----------------------------------------------------------
           David Abrahams * Boost Consulting
dave_at_[hidden] * http://www.boost-consulting.com


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