-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
std::string subsystem() const noexcept;
std::string devtype() const noexcept;
std::string syspath() const noexcept;
std::string sysname() const noexcept;
std::string sysnum() const noexcept;
std::string devnode() const noexcept;std::string throws if it fails to allocate storage for it; marking it as noexcept will just call std::terminate directly instead I believe.
May I suggest returning std::string_view instead? The lifetime the strings are tied to udev_device I believe.
Metadata
Metadata
Assignees
Labels
No labels