Re: [C++-sig] register c++ std::pair and std::pair

2015-08-28 Thread Stefan Seefeld
On 28/08/15 11:41 AM, MM wrote: > On 28 August 2015 at 16:05, Stefan Seefeld > wrote: > > On 28/08/15 10:15 AM, MM wrote: > > > > Load 1 then 2 it should trigger the warning. > > Apologies for missing the includes. > > I had to modify your code a bit

Re: [C++-sig] register c++ std::pair and std::pair

2015-08-28 Thread MM
On 28 August 2015 at 16:05, Stefan Seefeld wrote: > On 28/08/15 10:15 AM, MM wrote: > > > > Load 1 then 2 it should trigger the warning. > > Apologies for missing the includes. > > I had to modify your code a bit as it triggers errors when compiled > as-is. And with those modifications it didn't

Re: [C++-sig] register c++ std::pair and std::pair

2015-08-28 Thread Stefan Seefeld
On 28/08/15 10:15 AM, MM wrote: > > Load 1 then 2 it should trigger the warning. > Apologies for missing the includes. I had to modify your code a bit as it triggers errors when compiled as-is. And with those modifications it didn't see any warning. Could you please post code that I can compile w

Re: [C++-sig] register c++ std::pair and std::pair

2015-08-28 Thread Stefan Seefeld
On 28/08/15 10:15 AM, MM wrote: > > > On 28 August 2015 at 15:01, Stefan Seefeld > wrote: > > On 28/08/15 09:26 AM, MM wrote: > > This is in too separate modules. > > The converter is registered in module1, and the class_ in > > module 2. > > I impor

Re: [C++-sig] register c++ std::pair and std::pair

2015-08-28 Thread MM
On 28 August 2015 at 15:01, Stefan Seefeld wrote: > On 28/08/15 09:26 AM, MM wrote: > > This is in too separate modules. > > The converter is registered in module1, and the class_ in > > module 2. > > I import 1 then 2, then it happens > > > > Also the intents are different. THe pair is to be > >

Re: [C++-sig] register c++ std::pair and std::pair

2015-08-28 Thread Stefan Seefeld
On 28/08/15 09:26 AM, MM wrote: > This is in too separate modules. > The converter is registered in module1, and the class_ in > module 2. > I import 1 then 2, then it happens > > Also the intents are different. THe pair is to be > considered as a (str1,str2) tuple of 2 values. > The pair is the [b

Re: [C++-sig] register c++ std::pair and std::pair

2015-08-28 Thread MM
On 28 August 2015 at 13:41, Stefan Seefeld wrote: > On 28/08/15 07:49 AM, MM wrote: > > > > I expose the return type of a C++ function that is a pair of strings > > with the following snippet: > > > > |to_python_converter,Converter>();| > > > > Later, I have a unrelated C++ range type: > > > > |t

Re: [C++-sig] register c++ std::pair and std::pair

2015-08-28 Thread Stefan Seefeld
On 28/08/15 07:49 AM, MM wrote: > > I expose the return type of a C++ function that is a pair of strings > with the following snippet: > > |to_python_converter,Converter>();| > > Later, I have a unrelated C++ range type: > > |typedef std::pairrange_t;| > > which I export as: > > |class_("range").de

[C++-sig] register c++ std::pair and std::pair

2015-08-28 Thread MM
I expose the return type of a C++ function that is a pair of strings with the following snippet: to_python_converter< std::pair, Converter>(); Later, I have a unrelated C++ range type: typedef std::pair range_t; which I export as: class_("range") .def("__iter__" , range(..., ...));