15 Jul 10:01
Re: Beginner design question
John Femiani <JOHN.FEMIANI <at> asu.edu>
2008-07-15 08:01:42 GMT
2008-07-15 08:01:42 GMT
> Hello, > > I have to make a library which provides a few classes with > different implementation. This classes should have a common > interface. Normally I would use derived classes from the > common interface, but this classes should be really fast. > What is the best way to provide a common interface and to not > have the overhead of polymorphic classes? > > Best regards > Hansjörg I don't know about "fast", but you can use templates and specify the interface by concepts with Boost Concept Check Library (BCCL), or you could google CRTP. --John
RSS Feed