[C++-sig] template function

Luca Sbardella luca.sbardella at gmail.com
Wed Aug 29 18:45:44 CEST 2007


Thanks a lot!!!
I had no idea I could use the template keyword in that place..

Luca

On 29/08/2007, David Abrahams <dave at boost-consulting.com> wrote:
>
>
> on Wed Aug 29 2007, "Luca Sbardella" <luca.sbardella-AT-gmail.com> wrote:
>
> >             .def("list",                &container::tolist<
> boost::python::list > )
>                                                       ^
> container is a dependent type, so                     ^
> you are missing the 'template' keyword----------------^ here.
>
>
>    .def("list", &container::template tolist< boost::python::list > )
>
>
> --
> Dave Abrahams
> Boost Consulting
> http://www.boost-consulting.com
>
> The Astoria Seminar ==> http://www.astoriaseminar.com
>
> _______________________________________________
> C++-sig mailing list
> C++-sig at python.org
> http://mail.python.org/mailman/listinfo/c++-sig
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20070829/6da053f4/attachment.htm>


More information about the Cplusplus-sig mailing list