File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -294,13 +294,8 @@ struct type_record {
294
294
detail::clean_type_id (base_name);
295
295
std::string holder_name (holder_type->name ());
296
296
detail::clean_type_id (holder_name);
297
- // replace all occurences of base_name within holder_name with T
298
- size_t start_pos = 0 ;
299
- while ((start_pos = holder_name.find (base_name, start_pos)) != std::string::npos) {
300
- holder_name.replace (start_pos, base_name.length (), " T" );
301
- start_pos += 1 ;
302
- }
303
- return holder_name;
297
+ size_t start_pos = holder_name.find (base_name);
298
+ return holder_name.substr (0 , start_pos-1 );
304
299
};
305
300
std::string holder_name = clean_holder_name (holder_type, this ->type );
306
301
std::string base_holder_name = clean_holder_name (base_info->holder_type , base_info->cpptype );
You can’t perform that action at this time.
0 commit comments