mirror of
https://gitee.com/zyjblog/oatpp.git
synced 2024-12-22 22:16:37 +08:00
data::Bundle: fix get() method.
This commit is contained in:
parent
fa4cdf93fc
commit
e3747736fc
@ -44,9 +44,9 @@ public:
|
||||
"Error. Data not found for key '" + *key + "'.");
|
||||
}
|
||||
|
||||
if(it->second.valueType != WrapperType::Class::getType()) {
|
||||
if(it->second.getValueType() != WrapperType::Class::getType()) {
|
||||
throw std::runtime_error("[oatpp::data::Bundle::get()]: Error. Type mismatch. Stored '" +
|
||||
std::string(it->second.valueType->classId.name) +
|
||||
std::string(it->second.getValueType()->classId.name) +
|
||||
"' vs requested '" + std::string(WrapperType::Class::getType()->classId.name) + "'.");
|
||||
}
|
||||
return it->second.template staticCast<WrapperType>();
|
||||
|
Loading…
Reference in New Issue
Block a user