@@ -101,19 +101,22 @@ def erase_recursive(self, cls_name):
101101 def erase_allocator (self , cls_name , default_allocator = 'std::allocator' ):
102102 cls_name = self .replace_basic_string (cls_name )
103103 c_name , c_args = templates .split (cls_name )
104+ print ("erase_allocator c_name, c_args" , c_name , c_args )
104105 if len (c_args ) != 2 :
105106 return
106107 value_type = c_args [0 ]
107108 tmpl = string .Template (
108- "$container< $value_type, $allocator<$value_type> >" )
109+ "$container<$value_type, $allocator<$value_type>>" )
109110 tmpl = tmpl .substitute (
110111 container = c_name ,
111112 value_type = value_type ,
112113 allocator = default_allocator )
113114 if self .normalize (cls_name ) == \
114115 self .normalize (tmpl ):
115- return templates .join (
116+ x = templates .join (
116117 c_name , [self .erase_recursive (value_type )])
118+ print ("erase_allocator x" , x )
119+ return x
117120
118121 def erase_container (self , cls_name , default_container_name = 'std::deque' ):
119122 cls_name = self .replace_basic_string (cls_name )
@@ -378,7 +381,9 @@ def get_container_or_none(self, type_):
378381
379382 """
380383
384+ print ("get_container_or_none" , type_ )
381385 type_ = type_traits .remove_alias (type_ )
386+ print ("get_container_or_none" , type_ )
382387 type_ = type_traits .remove_cv (type_ )
383388
384389 utils .loggers .queries_engine .debug (
@@ -520,13 +525,14 @@ def remove_defaults(self, type_or_string):
520525 std::vector< int >
521526
522527 """
523-
528+ print ( "xxxx" , type_or_string )
524529 name = type_or_string
525530 if not isinstance (type_or_string , str ):
526531 name = self .class_declaration (type_or_string ).name
527532 if not self .remove_defaults_impl :
528533 return name
529534 no_defaults = self .remove_defaults_impl (name )
535+ print ("xxxx name, no_defaults" , name , no_defaults )
530536 if not no_defaults :
531537 return name
532538 return no_defaults
0 commit comments