You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
See comments in #840, consider having an up and downcast helper
template<typename Base, typename T>
Base & upcast(T& t)
{
// Maybe add some static_assert that Base is indeed base class of Treturnstatic_cast<Base&>(t);
}
To complete our list of templated constructors in
cxx-qt-lib/common.h
.We probably want to have at least:
construct
make_unique
(added in Add QPainter support #779 - to be released with 0.7)make_shared
new
/new_ptr
(contributed in add new_ptr template #905 , thanks to @knoxfighter)cxx-qt
rather thancxx-qt-lib
The text was updated successfully, but these errors were encountered: