I came across this code:
void f(const std::string &s);
And then a call:
f( *((std::string*)NULL) );
A
Is using NULL references OK?
No, unless you do not like your boss and your job ;)
This is something VERY bad. One of most important point of reference that it can't be NULL (unless you force it)