Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gabime/spdlog.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSandor Magyar <SMagyar@aphysci.com>2022-10-17 23:04:49 +0300
committerSandor Magyar <SMagyar@aphysci.com>2022-10-17 23:04:49 +0300
commitf3b61c70ba4a00712dcec18e9ceef6aea4c79674 (patch)
tree1f1ba18397c5adf918cdb1fc009f580f0118043a
parentd011332616464bd0c84817d6255bf5910b7803e9 (diff)
Catch exception by reference to fix -Wcatch-value warning
-rw-r--r--include/spdlog/sinks/mongo_sink.h2
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");
}