mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-16 18:11:49 +00:00
Fix CID 350455 (uncaught exception)
This commit is contained in:
committed by
Dennis Klein
parent
c290c16896
commit
7187953604
@@ -20,7 +20,7 @@ using namespace std;
|
|||||||
using namespace fair::mq;
|
using namespace fair::mq;
|
||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
T GetPropertyOrDefault(const fair::mq::Properties& m, const string& k, const T& ifNotFound) noexcept
|
T GetPropertyOrDefault(const fair::mq::Properties& m, const string& k, const T& ifNotFound)
|
||||||
{
|
{
|
||||||
if (m.count(k)) {
|
if (m.count(k)) {
|
||||||
return boost::any_cast<T>(m.at(k));
|
return boost::any_cast<T>(m.at(k));
|
||||||
|
Reference in New Issue
Block a user