C++11 - an example of trailing return type
1 2 3 4 template<typename T, typename S> auto multiply(T lhs, S rhs) -> decltype(lhs * rhs) { return lhs * rhs; }
1 2 3 4 template<typename T, typename S> auto multiply(T lhs, S rhs) -> decltype(lhs * rhs) { return lhs * rhs; }
C++11 introduced the defaulted function as the following example. 1 2 3 4 5 6 7 class help { public: help() = default; private: std::string m_text; }...
1 2 3 4 git svn clone http://svn.example.com/project/trunk git commit git svn rebase git svn dcommit
Channel 9 videos about xperf, xperfview, WPR and WPA http://channel9.msdn.com/Events/Speakers/Michael-Milirud Article about xperf http://blogs.msdn.com/b/ntd...
1 2 3 4 5 6 7 class BaseClass : public std::enable_shared_from_this<BaseClass> { template <typename Derived> std::shared_ptr<Derived> G...