Boost logo

Boost :

From: helmut.zeisel_at_[hidden]
Date: 2001-08-20 02:04:19

--- In boost_at_y..., helmut.zeisel_at_a... wrote:
> --- In boost_at_y..., Gabriel Dos Reis <Gabriel.Dos-Reis_at_c...> wrote:
> > helmut.zeisel_at_a... writes:
> >
> > [...]
> >
> > | A possible workaround for that problem could be
> > | to add some traits for rational_cast,
> > | e.g. by the following change in rational.hpp:
> >
> > Or use a class helper
> For me it makes not much difference
> whether traits or a class helper is used,
> as long as it is a working solution.

To completely understand your suggestion,
I tried to write some sample code,
specializing rational_cast_helper for, say, rational<int>.
I did not succeed, however.
Maybe it is just because of the definciences of Visual C++.
Can you post a code example how
specialization for rational<int> should look like?

Thank you,


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