This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am janekolszak on github. | |
* I am janekolszak (https://keybase.io/janekolszak) on keybase. | |
* I have a public key ASD5eX34IXNaXEFNHuDRqfUXF3X3kZIaHmHaRfNR-Ntbwwo | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <memory> | |
#include <functional> | |
using voidFun = void(*)(std::shared_ptr<void>); | |
template<typename T> | |
void fun(std::shared_ptr<T> t) | |
{ | |
std::cout << *t << std::endl; |