Page 1 of 1

Ambiguous overload of ConfigFile::load

Posted: Thu Apr 18, 2013 8:57 pm
by Mikachu
Hi,

ConfigFile::load() has 3 overloads :

Code: Select all

 /// load from a filename (not using resource group locations)
        void load(const String& filename, const String& separators = "\t:=", bool trimWhitespace = true);
        /// load from a filename (using resource group locations)
        void load(const String& filename, const String& resourceGroup, const String& separators = "\t:=", bool trimWhitespace = true);
        /// load from a data stream
        void load(const DataStreamPtr& stream, const String& separators = "\t:=", bool trimWhitespace = true);
... but the first 2 are actually ambiguous if you call them with 2 Strings as arguments, as the beginning of the signature is the same.

Re: Ambiguous overload of ConfigFile::load

Posted: Thu Apr 18, 2013 9:09 pm
by spacegaier
Probably makes sense to create a JIRA ticket for that one.

Re: Ambiguous overload of ConfigFile::load

Posted: Thu Apr 18, 2013 9:14 pm
by Mikachu
Done :)