Okay, #cplusplus twitter! As far as I can tell, this is doing perfect-forwarding the "right" way.
So why does it not compile unless I call move on an *integer*? What am I missing?
https://godbolt.org/z/M7yV5d
-
Näytä tämä ketju
-
Vastauksena käyttäjälle @tloch14
When you instantiate Delegate you are specifying the type as int you can modify the Invoke to function template and then it can work: https://godbolt.org/z/0Djj7p There may be better solutions though.pic.twitter.com/vtJCVh0St2
1 vastaus 1 uudelleentwiittaus 0 tykkäystä
Vastauksena käyttäjälle @shafikyaghmour
Yes! After @bjorn_fahller's response, I started down this route and found it worked.
Thank you both for your help!
21.53 - 25. helmik. 2019
0 vastausta
0 uudelleentwiittausta
1 tykkäys
Lataaminen näyttää kestävän hetken.
Twitter saattaa olla ruuhkautunut tai ongelma on muuten hetkellinen. Yritä uudelleen tai käy Twitterin tilasivulla saadaksesi lisätietoja.