@@ -10487,10 +10487,16 @@ namespace boost { namespace leaf {
10487
10487
10488
10488
friend std::ostream & operator<<( std::ostream & os, diagnostic_info const & x )
10489
10489
{
10490
- os << "leaf::diagnostic_info:" << std::endl;
10491
- x.print(os);
10492
- if( x.e_uc_ )
10493
- x.e_uc_->print(os);
10490
+ os << "leaf::diagnostic_info:";
10491
+ if( x.err_id_ )
10492
+ {
10493
+ os << std::endl;
10494
+ x.print(os);
10495
+ if( x.e_uc_ )
10496
+ x.e_uc_->print(os);
10497
+ }
10498
+ else
10499
+ os << " {No Error}" << std::endl;
10494
10500
return os;
10495
10501
}
10496
10502
};
@@ -10509,10 +10515,16 @@ namespace boost { namespace leaf {
10509
10515
10510
10516
friend std::ostream & operator<<( std::ostream & os, verbose_diagnostic_info const & x )
10511
10517
{
10512
- os << "leaf::verbose_diagnostic_info:" << std::endl;
10513
- x.print(os);
10514
- if( x.e_ui_ )
10515
- x.e_ui_->print(os);
10518
+ os << "leaf::verbose_diagnostic_info:";
10519
+ if( x.err_id_ )
10520
+ {
10521
+ os << std::endl;
10522
+ x.print(os);
10523
+ if( x.e_ui_ )
10524
+ x.e_ui_->print(os);
10525
+ }
10526
+ else
10527
+ os << " {No Error}" << std::endl;
10516
10528
return os;
10517
10529
}
10518
10530
};
@@ -16524,10 +16536,16 @@ namespace boost { namespace leaf {
16524
16536
16525
16537
friend std::ostream & operator<<( std::ostream & os, diagnostic_info const & x )
16526
16538
{
16527
- os << "leaf::diagnostic_info:" << std::endl;
16528
- x.print(os);
16529
- if( x.e_uc_ )
16530
- x.e_uc_->print(os);
16539
+ os << "leaf::diagnostic_info:";
16540
+ if( x.err_id_ )
16541
+ {
16542
+ os << std::endl;
16543
+ x.print(os);
16544
+ if( x.e_uc_ )
16545
+ x.e_uc_->print(os);
16546
+ }
16547
+ else
16548
+ os << " {No Error}" << std::endl;
16531
16549
return os;
16532
16550
}
16533
16551
};
@@ -16546,10 +16564,16 @@ namespace boost { namespace leaf {
16546
16564
16547
16565
friend std::ostream & operator<<( std::ostream & os, verbose_diagnostic_info const & x )
16548
16566
{
16549
- os << "leaf::verbose_diagnostic_info:" << std::endl;
16550
- x.print(os);
16551
- if( x.e_ui_ )
16552
- x.e_ui_->print(os);
16567
+ os << "leaf::verbose_diagnostic_info:";
16568
+ if( x.err_id_ )
16569
+ {
16570
+ os << std::endl;
16571
+ x.print(os);
16572
+ if( x.e_ui_ )
16573
+ x.e_ui_->print(os);
16574
+ }
16575
+ else
16576
+ os << " {No Error}" << std::endl;
16553
16577
return os;
16554
16578
}
16555
16579
};
0 commit comments