[Development] Should qMetaTypeId<const T>() == qMetaTypeId<T>() ?

Marc Mutz marc.mutz at kdab.com
Wed Aug 24 15:23:01 CEST 2016


Hi,

Currently, it's not, which doesn't make much sense, does it?

So,

  template <typename T>
  int qMetyTypeId<T>() {
    return qMetaTypeIdHelper<typename std::remove_cv<T>::type>();
  }

?

(There's of course a lot more involved in this, registration should discard 
const, too, e.g.).

Thanks,
Marc
-- 
Marc Mutz <marc.mutz at kdab.com> | Senior Software Engineer
KDAB (Deutschland) GmbH & Co.KG, a KDAB Group Company
Tel: +49-30-521325470
KDAB - Qt, C++ and OpenGL Experts



More information about the Development mailing list