error C2668: 'isdigt' : ambiguous call to overloaded function
error C2668: 'isdigt' : ambiguous call to overloaded function
(The errors are the same)
i'm having these at the lines 340 and 366 in "my" CFBXMeshFileLoader.cpp:
Error 1 is in this:
Code: Select all
bool ConsumeInt(int& val)
{
if (isBinary)
{
c8 type;
File->read(&type, 1);
if (type != 'I')
std::cout << "Expected 'I' qualifier" << std::endl;
File->read(&val, 4);
return true;
}
core::stringc token;
ConsumeNextToken(token);
if (token[0]==',')
ConsumeNextToken(token);
if ((token[0]!='-') && !isdigit(token[0])) //ERROR OCCURS HERE
{
File->seek(-1*token.size()-1, true);
return false;
}
val = core::strtol10(token.c_str());
return true;
}
Code: Select all
bool ConsumeFloat(float& val)
{
if (isBinary)
{
c8 type;
File->read(&type, 1);
if (type != 'D')
std::cout << "Expected 'D' qualifier" << std::endl;
double d;
File->read(&d, sizeof(d));
val=(float)d;
return true;
}
core::stringc token;
ConsumeNextToken(token);
if (token[0]==',')
ConsumeNextToken(token);
if ((token[0]!='.') && (token[0]!='-') && !isdigit(token[0])) //THE ERROR OCCURS HERE
{
File->seek(-1*token.size()-1, true);
return false;
}
val = core::fast_atof(token.c_str());
return true;
}
Code: Select all
#include "stdafx.h"
#include "CFBXMeshFileLoader.h"
#include "ISkinnedMesh.h"
#include "ISceneManager.h"
#include "IReadFile.h"
#include "irrMap.h"
#include "irrArray.h"
#include "fast_atof.h"
#include <cctype>
#include <iostream>
namespace irr
{
namespace scene
{
//! Constructor
CFBXMeshFileLoader::CFBXMeshFileLoader(scene::ISceneManager* smgr) : SceneManager(smgr)
{
#ifdef _DEBUG
setDebugName("CFBXMeshFileLoader");
#endif
}
//! returns true if the file maybe is able to be loaded by this class
//! based on the file extension (e.g. ".bsp")
bool CFBXMeshFileLoader::isALoadableFileExtension(const io::path& filename) const
{
return (core::hasFileExtension( filename, "fbx"));
}
namespace
{