-
Notifications
You must be signed in to change notification settings - Fork 53
Open
Description
In StringTokenizer::GetNextToken() in Utilities/StringTokenizer.cpp the line return(NULL); is not correct as the function returns a std::string which can't be set to NULL..
In fact, GCC 12 will give the following error:
Utilities/StringTokenizer.cpp:238:28: error: use of deleted function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::basic_string(std::nullptr_t) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::nullptr_t = std::nullptr_t]'
Changing the line return(NULL); to return(""); fixes this.
P.S.: I know GCC 12 isn't released yet, but the current stage 3 prerelease already works quite well.
Metadata
Metadata
Assignees
Labels
No labels