@@ -483,29 +483,21 @@ def is_fundamental(type_):
483
483
string_equivalences = [
484
484
(
485
485
'::std::basic_string<char,std::char_traits<char>,'
486
- 'std::allocator<char> >' ),
487
- (
488
- '::std::basic_string<char, std::char_traits<char>, '
489
- 'std::allocator<char> >' ),
486
+ 'std::allocator<char>>' ),
490
487
'::std::basic_string<char>' , '::std::string' ]
491
488
492
489
wstring_equivalences = [
493
490
(
494
491
'::std::basic_string<wchar_t,std::char_traits<wchar_t>,' +
495
- 'std::allocator<wchar_t> >' ),
496
- (
497
- '::std::basic_string<wchar_t, std::char_traits<wchar_t>, ' +
498
- 'std::allocator<wchar_t> >' ),
492
+ 'std::allocator<wchar_t>>' ),
499
493
'::std::basic_string<wchar_t>' , '::std::wstring' ]
500
494
501
495
ostream_equivalences = [
502
- '::std::basic_ostream<char, std::char_traits<char> >' ,
503
- '::std::basic_ostream<char,std::char_traits<char> >' ,
496
+ '::std::basic_ostream<char,std::char_traits<char>>' ,
504
497
'::std::basic_ostream<char>' , '::std::ostream' ]
505
498
506
499
wostream_equivalences = [
507
- '::std::basic_ostream<wchar_t, std::char_traits<wchar_t> >' ,
508
- '::std::basic_ostream<wchar_t,std::char_traits<wchar_t> >' ,
500
+ '::std::basic_ostream<wchar_t,std::char_traits<wchar_t>>' ,
509
501
'::std::basic_ostream<wchar_t>' , '::std::wostream' ]
510
502
511
503
@@ -521,7 +513,7 @@ def is_std_string(type_):
521
513
type_ = remove_alias (type_ )
522
514
type_ = remove_reference (type_ )
523
515
type_ = remove_cv (type_ )
524
- return type_ .decl_string in string_equivalences
516
+ return type_ .decl_string . replace ( ' ' , '' ) in string_equivalences
525
517
526
518
527
519
def is_std_wstring (type_ ):
@@ -536,7 +528,7 @@ def is_std_wstring(type_):
536
528
type_ = remove_alias (type_ )
537
529
type_ = remove_reference (type_ )
538
530
type_ = remove_cv (type_ )
539
- return type_ .decl_string in wstring_equivalences
531
+ return type_ .decl_string . replace ( ' ' , '' ) in wstring_equivalences
540
532
541
533
542
534
def is_std_ostream (type_ ):
@@ -551,7 +543,7 @@ def is_std_ostream(type_):
551
543
type_ = remove_alias (type_ )
552
544
type_ = remove_reference (type_ )
553
545
type_ = remove_cv (type_ )
554
- return type_ .decl_string in ostream_equivalences
546
+ return type_ .decl_string . replace ( ' ' , '' ) in ostream_equivalences
555
547
556
548
557
549
def is_std_wostream (type_ ):
@@ -566,4 +558,4 @@ def is_std_wostream(type_):
566
558
type_ = remove_alias (type_ )
567
559
type_ = remove_reference (type_ )
568
560
type_ = remove_cv (type_ )
569
- return type_ .decl_string in wostream_equivalences
561
+ return type_ .decl_string . replace ( ' ' , '' ) in wostream_equivalences
0 commit comments