Created
September 19, 2017 11:36
-
-
Save njlr/54c48232124064ec40598b3075599b5e to your computer and use it in GitHub Desktop.
This file contains hidden or 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
template<class ReturnType, class...Xs> | |
class Function<ReturnType(Xs...)> { | |
std::shared_ptr<Concept<ReturnType,Xs...>> pimpl; | |
public: | |
Function() {} | |
template<class F> | |
Function(F const& f) | |
: pimpl(new SFModel<F, ReturnType, Xs...> ) // heap allocation | |
{} | |
~Function() = default; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment