Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
class Calendar {
protected: //! abstract base class for calendar implementations class Impl { public: virtual bool isWeekend(Weekday) const = 0; ... }; class WesternImpl : public Impl { protected: bool isWeekend(Weekday) const; ... }; If I were right, changing the virtual function scope is NOT a good practice in c++. So why we decide to do so here? Thank you ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
It might be a leftover from some changes that weren't well
synchronized. In this case it doesn't hurt, but I'll change it back. Luigi On Tue, Jul 10, 2012 at 5:03 PM, Mike Jake <[hidden email]> wrote: > class Calendar { > protected: > //! abstract base class for calendar implementations > class Impl { > public: > virtual bool isWeekend(Weekday) const = 0; > ... > }; > > class WesternImpl : public Impl { > protected: > bool isWeekend(Weekday) const; > ... > }; > > If I were right, changing the virtual function scope is NOT a good > practice in c++. So why we decide to do so here? > > Thank you > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > QuantLib-users mailing list > [hidden email] > https://lists.sourceforge.net/lists/listinfo/quantlib-users ... [show rest of quote] ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
Free forum by Nabble | Disable Popup Ads | Edit this page |