Boost logo

Boost :

From: Ralf W. Grosse-Kunstleve (rwgk_at_[hidden])
Date: 2006-05-27 01:45:50


--- Alexander Nasonov <alnsn_at_[hidden]> wrote:

> Ralf W. Grosse-Kunstleve wrote:
> > I've reduced it to:
> >
> > template<int N>
> > struct sized_type_for_promotion
> > {
> > typedef char (&type)[N];
> > };
> >
> > sized_type_for_promotion<1> ::type promoted_index_tester(int);
> > sized_type_for_promotion<2> ::type promoted_index_tester(unsigned int);
> > sized_type_for_promotion<3> ::type promoted_index_tester(long);
> > sized_type_for_promotion<4> ::type promoted_index_tester(unsigned long);
>
> May be it doesn't like sized_type_for_promotion?
>
> Could you try this approach:
>
> char (&promoted_index_tester(int)) [1];
> char (&promoted_index_tester(unsigned int)) [2];
> char (&promoted_index_tester(long)) [3];
> char (&promoted_index_tester(unsigned long))[4];
>
> ?

Thanks for the suggestions!
Unfortunately it doesn't work (same error message).

> You only need to activate another branch of
> #if !defined(BOOST_MSVC)
> The patch is attached.

I tried this too and it also doesn't work.

Please don't spend any time on this. Only crystallographers are crazy enough to
still use the old SGI's, and in crystallography we may be the only people crazy
enough to use boost. :) If there are objections against my simple workaround
I'll just maintain the patch locally until SGI is completely dead, no big deal.

Cheers,
        Ralf

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com


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