Backported to C++03
Fixed pointers