[C++-sig] Re: newbie questions...
David Abrahams
dave at boost-consulting.com
Wed Mar 30 01:46:33 CEST 2005
"Ralf W. Grosse-Kunstleve" <rwgk at yahoo.com> writes:
> template <typename T1, typename T2>
> struct std_pair_to_python_converter
> {
> std_pair_to_python_converter()
> {
> boost::python::to_python_converter<
> std::pair<T1, T2>,
> std_pair_to_tuple<T1, T2> >();
> }
> };
wouldn't
template <typename T1, typename T2>
void std_pair_to_python_converter()
{
boost::python::to_python_converter<
std::pair<T1, T2>,
std_pair_to_tuple<T1, T2> >();
}
be so much simpler?
--
Dave Abrahams
Boost Consulting
www.boost-consulting.com
More information about the Cplusplus-sig
mailing list