mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-20 01:53:34 +08:00
Explicit constructors
This commit is contained in:
@@ -15,7 +15,7 @@ class Exception : public std::runtime_error
|
||||
const int errno_;
|
||||
|
||||
public:
|
||||
Exception(const std::string& descr)
|
||||
explicit Exception(const std::string& descr)
|
||||
: std::runtime_error(descr)
|
||||
, errno_(errno)
|
||||
{ }
|
||||
|
||||
Reference in New Issue
Block a user