Bug#811682: FTBFS with GCC 6: could not convert a from x to y
Gert Wollny
gw.fossdev at gmail.com
Sun Jun 26 17:20:08 UTC 2016
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
More information about the debian-science-maintainers
mailing list