#1199 shared_ptr( nullptr ) does not work for gcc-4.5
Metadata
Property | Value |
---|---|
Reported by | Martin Nolte (nolte@mathematik.uni-freiburg.de) |
Reported at | Oct 17, 2012 19:41 |
Type | Bug Report |
Version | 2.2 |
Operating System | Unspecified / All |
Last edited by | Christian Engwer (christi@conan.iwr.uni-heidelberg.de) |
Last edited at | Jul 6, 2014 16:45 |
Closed by | Christian Engwer (christi@conan.iwr.uni-heidelberg.de) |
Closed at | Jul 6, 2014 16:45 |
Closed in version | Unknown |
Resolution | Won't fix |
Comment | In DUNE the problem doesn't persist any more, but we lack a proper fix in general. You'll have to avoid using shared_ptr(nullptr) |
Description
After recent changes, UGGrid uses a shared_ptr to store geometries of the intersections. In the constructor, they are initialized to nullptr. With gcc-4.5, this causes a compiler error. For this compiler version, shared_ptr is a std::shared_ptr and nullptr is our replacement.