Due to extensive use of copy constructors in the STL, any inheritance hierarchy of comparators will always get "clipped" back to the base type. More...
#include <FwdStrategy.h>
Public Member Functions | |
BundleOfferComp (const FwdStrategyComp *comp) | |
bool | operator() (const Bundle *a, const Bundle *b) const |
Public Attributes | |
const FwdStrategyComp * | comp_ |
pointer to actual comparator instance |
Due to extensive use of copy constructors in the STL, any inheritance hierarchy of comparators will always get "clipped" back to the base type.
See Scott Meyer's excellent text on "Effective STL." To get around this limitation, use a wrapper that invokes the proper method based on a pointer dereference. It's a long explanation, and the book is worth every penny, so go spend US$40 and read up on it.
Definition at line 204 of file FwdStrategy.h.
prophet::BundleOfferComp::BundleOfferComp | ( | const FwdStrategyComp * | comp | ) | [inline] |
Definition at line 207 of file FwdStrategy.h.
Definition at line 210 of file FwdStrategy.h.
References comp_.
pointer to actual comparator instance
Definition at line 215 of file FwdStrategy.h.
Referenced by operator()().