New classes for processing offers in order books:

* BookTip provides consume-and-step offer traversal
* OfferStream applies offer business rules and presents offers to callers
* Taker class manages state for the active party during order processing
* Offer class wraps book offers for presentation
This commit is contained in:
Vinnie Falco
2014-04-02 14:26:38 -07:00
parent 53bf5e7f36
commit 04ea9ff74c
18 changed files with 1094 additions and 46 deletions

View File

@@ -75,11 +75,10 @@ public:
{
}
/** Assignment.
This is only valid when ByValue == `true`
*/
template <bool OtherByValue>
RippleAssetType& operator= (RippleAssetType <OtherByValue> const& other)
/** Assignment. */
template <bool MaybeByValue = ByValue, bool OtherByValue>
std::enable_if_t <MaybeByValue, RippleAssetType&>
operator= (RippleAssetType <OtherByValue> const& other)
{
currency = other.currency;
issuer = other.issuer;