1
0
mirror of https://github.com/anope/anope.git synced 2026-07-07 00:23:14 +02:00

Remove a function which exists for compat with old versions of VS.

This commit is contained in:
Sadie Powell
2024-02-25 23:49:07 +00:00
parent 8e3da86283
commit 8c9ca23900
+1 -8
View File
@@ -45,14 +45,7 @@ namespace Configuration
const Block* GetBlock(const Anope::string &name, int num = 0) const;
Block* GetMutableBlock(const Anope::string &name, int num = 0);
template<typename T> inline T Get(const Anope::string &tag) const
{
return this->Get<T>(tag, "");
}
/* VS 2008 has an issue with having a default argument here (def = ""), which is why the above
* function exists.
*/
template<typename T> T Get(const Anope::string &tag, const Anope::string &def) const
template<typename T> T Get(const Anope::string &tag, const Anope::string &def = "") const
{
const Anope::string &value = this->Get<const Anope::string>(tag, def);
if (!value.empty())