[C++-sig] current spelling of from_python<>?

Ralf W. Grosse-Kunstleve rwgk at yahoo.com
Tue Jun 11 23:55:10 CEST 2002


--- David Abrahams <david.abrahams at rcn.com> wrote:
> > Observations:
> >
> > The code as shown works with Linux/gcc304, but VC6 reports
> > "indirect_traits.hpp(308) : error C2057: expected constant expression."
> > arg_from_python<container_element_type> also works with Linux/gcc304, but
> VC6
> > reports "fatal error C1001: INTERNAL COMPILER ERROR."
> > Should/could I use a different approach for testing convertibility that
> VC6
> > might not choke on?
> 
> Try breaking up the definition of value into little steps so that the
> expression is simpler.

Indeed,

        PyObject* ti = t[i].get();
        arg_from_python<container_element_type const&> from_py(ti);

works! That was just too obvious.
Ralf


__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com





More information about the Cplusplus-sig mailing list