Cromon

Untitled

Aug 23rd, 2013
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.25 KB | None | 0 0
  1.     template<typename... Args>
  2.     void defConstructor() {
  3.         using namespace std;
  4.         std::function < std::shared_ptr<_classType> (Args...)> fun = [](Args... args) { return std::make_shared<_classType>(args...); };
  5.         mFunConstructor->addOverload(fun);
  6.     }
Advertisement
Add Comment
Please, Sign In to add comment