I am using JGrasp as IDE. I have confirmed by "Actual command sent" that the compiler being used is TDM-GCC-64\bin\g++.exe, and I have confirmed that the edition of g++ is 4.8.1, which should recognize the 'nullptr' keyword along with most of C++11. I have '-std=c++11' in the args for the compiler and linker. Having confirmed all of this multiple times, I cannot understand what is causing the error:
'nullptr' was not declared in this scope
Yeah I typed that then realized it wasn't a pointer. You could always just pass as a pointer and do it the way you are now. Or maybe change the if statement to something like if(!other.name.empty())
Now that I think of this, I understand why my code was incorrect. The variable other is a reference to an object and probing whether it is null is unnecessary because null references are illegal. The compiler error was very misleading.