Commit 767e201b authored by Philipp Götze's avatar Philipp Götze
Browse files

Get rid of compiler warning (g++ 7.2.1)

parent 88a27b96
......@@ -137,11 +137,12 @@ public:
// if found then we return it
return std::static_pointer_cast<Table<RecordType, KeyType>>(it->second);
}
else
else {
// otherwise we just return an empty pointer
// TODO: shouldn't we throw an exception here???
std::cout << "table '" << tblName << "' not found" << std::endl;
return std::shared_ptr<Table<RecordType, KeyType>>();
}
}
bool tableExists(const std::string& tblName) const;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment