[C++-sig] register c++ std::pair<string, string> and std::pair<string*, string*>

Stefan Seefeld stefan at seefeld.name
Fri Aug 28 17:42:55 CEST 2015


On 28/08/15 11:41 AM, MM wrote:
> On 28 August 2015 at 16:05, Stefan Seefeld <stefan at seefeld.name
> <mailto:stefan at seefeld.name>> 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 see any warning.
>     Could you please post code that I can compile without any
>     modifications ?
>
>     Thanks,
>             Stefan
>
>
> Apologies, I also didn't get any warnings.
>
> I was actually registering an identical   std::pair<const string*,
> const string*> as an iterator with a different name in a prior module,
> ie I had another class_<range2_t>("range2")
>
> and range2_t is identical to ranget_t :-)

Aha ! Yeah, that's clearly not going to work due to the ambiguity.


>
> Thanks for helping to spot this:-)

Welcome !:-)

        Stefan


-- 

      ...ich hab' noch einen Koffer in Berlin...



More information about the Cplusplus-sig mailing list