diff options
author | Sadie Powell <sadie@witchery.services> | 2024-02-25 23:49:07 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2024-02-25 23:49:07 +0000 |
commit | 8c9ca23900c778d01e4da0307f69f4a9145ff58b (patch) | |
tree | dc2e3ec581bbc4ec4f7a7f74a9b064e191e273ba /include | |
parent | 8e3da86283b4ead0946debbdda6054d60242a165 (diff) |
Remove a function which exists for compat with old versions of VS.
Diffstat (limited to 'include')
-rw-r--r-- | include/config.h | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/include/config.h b/include/config.h index d172da457..c71625ac9 100644 --- a/include/config.h +++ b/include/config.h @@ -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()) |