replaced std::size() with AI_COUNT_OF for pre-C++20 compilers
This commit is contained in:
@@ -143,7 +143,7 @@ STLImporter::~STLImporter() {
|
||||
// Returns whether the class can handle the format of the given file.
|
||||
bool STLImporter::CanRead(const std::string &pFile, IOSystem *pIOHandler, bool /*checkSig*/) const {
|
||||
static const char *tokens[] = { "STL", "solid" };
|
||||
return SearchFileHeaderForToken(pIOHandler, pFile, tokens, std::size(tokens));
|
||||
return SearchFileHeaderForToken(pIOHandler, pFile, tokens, AI_COUNT_OF(tokens));
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user