mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-29 01:29:35 +08:00
Catch exception by reference to fix -Wcatch-value warning
This commit is contained in:
@@ -37,7 +37,7 @@ public:
|
||||
db_name_ = db_name;
|
||||
coll_name_ = collection_name;
|
||||
}
|
||||
catch (const std::exception)
|
||||
catch (const std::exception&)
|
||||
{
|
||||
throw spdlog_ex("Error opening database");
|
||||
}
|
||||
|
Reference in New Issue
Block a user