diff options
author | Sandor Magyar <SMagyar@aphysci.com> | 2022-10-17 23:04:49 +0300 |
---|---|---|
committer | Sandor Magyar <SMagyar@aphysci.com> | 2022-10-17 23:04:49 +0300 |
commit | f3b61c70ba4a00712dcec18e9ceef6aea4c79674 (patch) | |
tree | 1f1ba18397c5adf918cdb1fc009f580f0118043a /include/spdlog | |
parent | d011332616464bd0c84817d6255bf5910b7803e9 (diff) |
Catch exception by reference to fix -Wcatch-value warning
Diffstat (limited to 'include/spdlog')
-rw-r--r-- | include/spdlog/sinks/mongo_sink.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/spdlog/sinks/mongo_sink.h b/include/spdlog/sinks/mongo_sink.h index 34f4ee33..d239e928 100644 --- a/include/spdlog/sinks/mongo_sink.h +++ b/include/spdlog/sinks/mongo_sink.h @@ -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"); } |