C++11: Replaced the C NULL with the safer C++11 nullptr
Requires gcc version 4.7 or higher
This commit is contained in:
@ -81,7 +81,7 @@ int main(int argc, char *argv[])
|
||||
string me("Mark");
|
||||
|
||||
// Handling of null strings
|
||||
if (regExp(NULL).match(me))
|
||||
if (regExp(nullptr).match(me))
|
||||
{
|
||||
Info<< "fail - matched: " << me << endl;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user