c++-sig@python.org
[Top] [All Lists]

Re: [C++-sig] Split_module and file names

Subject: Re: [C++-sig] Split_module and file names
From: Nicolas Tessore
Date: Wed, 22 Nov 2006 23:36:07 +0100
Roman Yakovenko, 21.11.2006 07:33

> Strange, this test ( http://tinyurl.com/y2a5g6 ) shows that it does
> work for map and vector
> ( not list, but still it is not too different )

I also cannot see why it should not be working for me!

> Don't use "cls.decl_string" but cls.name. pygccxml implements small
> and naive parser
> for C++ templates. It works most of the time. It does not able to
> parser string like
> x::y::z< a, b, c >, but z< a, b, c >.

I found that both .name and .decl_string don't have the initial scope, 
and both don't work for me.

> P.S. If it does not help, can you come up with small test case that
> reproduce the problem?

That's the most absurd thing of it all: I tryed

     if not declarations.templates.is_instantiation(cls.name):
         print cls.name

and then copied the output string, and manually tried it with

     print declarations.templates.is_instantiation("map<... >")

which would always show as True.

I'm confused, seems like I have to catch the maps manually with a 
cls.name.startswith("map") or something alike.

N.
_______________________________________________
C++-sig mailing list
C++-sig@xxxxxxxxxx
http://mail.python.org/mailman/listinfo/c++-sig

<Prev in Thread] Current Thread [Next in Thread>