Boost logo

Boost Users :

From: John Femiani (JOHN.FEMIANI_at_[hidden])
Date: 2008-07-15 04:01:42


> 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


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net