App: [skip ci] handle types long and unsigned long in PropertyPlacement::setPathValue()
This commit is contained in:
@@ -643,6 +643,10 @@ void PropertyPlacement::setPathValue(const ObjectIdentifier &path, const boost::
|
||||
avalue = boost::any_cast<short>(value);
|
||||
else if (value.type() == typeid(unsigned short))
|
||||
avalue = boost::any_cast<unsigned short>(value);
|
||||
else if (value.type() == typeid(long))
|
||||
avalue = boost::any_cast<long>(value);
|
||||
else if (value.type() == typeid(unsigned long))
|
||||
avalue = boost::any_cast<unsigned long>(value);
|
||||
else
|
||||
throw std::bad_cast();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user