Ambiguous overload of ConfigFile::load

Minor issues with the Ogre API that can be trivial to fix
Post Reply
User avatar
Mikachu
Gnoll
Posts: 603
Joined: Thu Jul 28, 2005 4:11 pm
Location: Nice, France
x 35

Ambiguous overload of ConfigFile::load

Post 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.
OgreProcedural - Procedural Geometry for Ogre3D
User avatar
spacegaier
OGRE Team Member
OGRE Team Member
Posts: 4304
Joined: Mon Feb 04, 2008 2:02 pm
Location: Germany
x 135
Contact:

Re: Ambiguous overload of ConfigFile::load

Post by spacegaier »

Probably makes sense to create a JIRA ticket for that one.
Ogre Admin [Admin, Dev, PR, Finance, Wiki, etc.] | BasicOgreFramework | AdvancedOgreFramework
Don't know what to do in your spare time? Help the Ogre wiki grow! Or squash a bug...
User avatar
Mikachu
Gnoll
Posts: 603
Joined: Thu Jul 28, 2005 4:11 pm
Location: Nice, France
x 35

Re: Ambiguous overload of ConfigFile::load

Post by Mikachu »

Done :)
OgreProcedural - Procedural Geometry for Ogre3D
Post Reply