TelepathyIM / telepathy-qt

Telepathy Qt bindings
https://telepathy.freedesktop.org
GNU Lesser General Public License v2.1
25 stars 14 forks source link

Remove own smart pointers #39

Open Kaffeine opened 4 years ago

Kaffeine commented 4 years ago

Remove own smart pointer classes or rationalize their existance.

z3ntu commented 1 year ago

Also causes some compile warnings when compiling with C++17 for example

/usr/include/telepathy-qt5/TelepathyQt/shared-ptr.h: In constructor 'Tp::SharedPtr<T>::SharedPtr(const Tp::WeakPtr<T>&)':
/usr/include/telepathy-qt5/TelepathyQt/shared-ptr.h:112:26: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
  112 |             register int tmp = sc->strongref.fetchAndAddOrdered(0);
      |                          ^~~