Are you sure? > It fails to build from source in unstable. > > View.cc: In member function 'SmartPtr<Element> View::getCharAt(const > scaled&, const scaled&, CharIndex&, Point*, BoundingBox*) const': > View.cc:294:10: error: 'nullptr' was not declared in this scope > return nullptr;
Arrg, "nullptr" is a c++11 construct, and since g++-5 defaults to c++03, it doesn't compile like this. Instead return SmartPtr<Element>(); should work in both cases (if this SmartPtr template defines a sensible default constructor). Otherwise "return NULL" should be the (ugly) solution. Best, Gert