/* std::unique_ptr specializations for GDB.
- Copyright (C) 2016-2017 Free Software Foundation, Inc.
+ Copyright (C) 2016-2018 Free Software Foundation, Inc.
This file is part of GDB.
void operator() (T *ptr) const { xfree (ptr); }
};
+/* Same, for arrays. */
+template <typename T>
+struct xfree_deleter<T[]>
+{
+ void operator() (T *ptr) const { xfree (ptr); }
+};
+
/* Import the standard unique_ptr to our namespace with a custom
deleter. */