20 years, 1 month ago
Highlights
Community contributions featuredWhy has it taken so long for someone to say:B::B(const B &b) : list( b.list ){}
20 years, 1 month ago
20 years, 1 month ago
Quote:Original post by Frunytemplate <class T> class A{public: template<class U> A(const A<U>& a, typename enable_if< is_base_of<T,U> >::type* dumm…
20 years, 1 month ago
20 years, 1 month ago
20 years, 1 month ago
Latest Activity
See all in DiscussionsWhy has it taken so long for someone to say:B::B(const B &b) : list( b.list ){}
20 years, 1 month ago
Quote:Original post by Frunytemplate <class T> class A{public: template<class U> A(const A<U>& a, typename enable_if< is_base_of<T,U> >::type* dummy = 0) …
20 years, 1 month ago
Quote:Original post by Emmanuel DelogetBTW the correct way to cast A to B is to call dynamic_cast<>:B *b = dynamic_cast<B*>(a);if …
20 years, 1 month ago