Chris Johns commented on a discussion on cpukit/librtemscxx/error.cpp: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/995#note_141868

 > -    : std::runtime_error(::rtems_status_text(sc)),
 > -      sc(sc)
 > -  {
 > -  }
 > +namespace rtems {
 > +runtime_error::runtime_error(const rtems_status_code sc)
 > +    : std::runtime_error(::rtems_status_text(sc)), sc(sc) {}
 >  
 > -  runtime_error::runtime_error(const rtems_status_code sc,
 > -                               const std::string&      what)
 > -    : std::runtime_error(what + ": " + ::rtems_status_text(sc)),
 > -      sc(sc)
 > -  {
 > -  }
 > +runtime_error::runtime_error(const rtems_status_code sc,
 > +                             const std::string &what)

Looks good, thanks.

-- 
View it on GitLab: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/995#note_141868
You're receiving this email because of your account on gitlab.rtems.org.


_______________________________________________
bugs mailing list
[email protected]
http://lists.rtems.org/mailman/listinfo/bugs

Reply via email to