https://bugs.kde.org/show_bug.cgi?id=456427

Robert Hairgrove <c...@roberthairgrove.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |c...@roberthairgrove.com

--- Comment #2 from Robert Hairgrove <c...@roberthairgrove.com> ---
I think the problem is that these classes depend on some KDE stuff which define
AST as a macro which formerly was probably std::auto_ptr, but in more recent
versions uses std::unique_ptr.

If the unique_ptr is wrapping a NULL pointer, then of course the &(*) etc. will
crash hbecause this is dereferencing a NULL pointer. However, `operator bool()`
is overloaded in `std::unique_ptr`, so one could also write simply:
```
if (declarator) { // etc.
```
instead of:
```
if (&(*declarator)) {
```
or
```
if (declarator.get())) {
```

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to