Thread with 9 posts

jump to expanded post

[if you use a different type of parentheses] temporaries bound to references do not have their lifetimes extended

aaaAAAAAAAAA a A A Aa A A A A a11111111aaaaaa

ο½‰γ€€ο½—ο½‰ο½“ο½ˆγ€€ο½‰γ€€ο½ƒο½ο½•ο½Œο½„γ€€ο½•ο½Žο½’ο½…ο½ο½„γ€€ο½”ο½ˆο½‰ο½“γ€€ο½ο½Œο½…ο½ο½“ο½… 😭😭😭😭😭😭😭😭

Open thread at this post
mcc , @mcc@mastodon.social
(open profile)

@hikari …and so this isn't a problem with *base* qt, because all base qt constructors are declared with explicit

but the first thing you do when you start writing qt is you subclass existing qt classes and create your own MyQtClass(QObject *) {} constructors

so if you don't know about the `explicit` convention and why the qt base libraries do it, you have just placed a landmine under your chair

Open remote post (opens in a new window)