[C++-sig] Re: using map_indexing_suite: make_tuple ambiguous?
Joel de Guzman
joel at boost-consulting.com
Tue May 4 05:11:55 CEST 2004
David Abrahams wrote:
> The following message is a courtesy copy of an article
> that has been posted to gmane.comp.python.c++ as well.
>
> Dave Berton <db at nec-labs.com> writes:
>
>
>>I am trying to wrap a std::map<> using the map_indexing_suite<>, however
>>I am getting 'call of overloaded make_tuple() is ambiguous'. The
>
>
> The compiler is right. There's a bug in map_indexing_suite.hpp (or
> the C++ language definition; darned ADL again!)
>
> You should change line 95 from:
>
> return "(%s, %s)" % make_tuple(e.first, e.second);
>
> to
>
> return "(%s, %s)" % python::make_tuple(e.first, e.second);
>
> Joel, will you add Dave Berton's change to the test suite, then make
> this change in CVS and verify that it fixes things?
Done. I added a test and verified that everything works as expected.
I'm having some CVS problems, however. I'll commit as soon as I find
out why I'm getting these CVS errors.
Regards,
--
Joel de Guzman
http://www.boost-consulting.com
http://spirit.sf.net
More information about the Cplusplus-sig
mailing list