Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
C++: Separating class declaration from implem, the hard way
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
TomWij
Developer
Developer


Joined: 04 Jul 2012
Posts: 1352

PostPosted: Mon Aug 19, 2013 8:27 am    Post subject: Reply with quote

schorsch_76 wrote:
dmitchell wrote:

These sound like good candidates for constructor parameters or a policy-based design (though I find policy-based design better in theory than in practice).


They are good, but it must be really orthogonal to the other stuff. See Alexandrescu "Modern C++ Design: Generic Programming and Design Patterns Applied" Ch1. "Policy based class design"

In Practice the problems which are needed to solve, are not orthogonal, so an other solution is better ;)


Exactly, the last quote he made still sounds mostly exception handling to me; there might be an exception on the list, but I agree that policy based design doesn't seem like an appropriate fit.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum