Workaround DR106.

This commit is contained in:
JoelKatz
2013-05-11 19:07:08 -07:00
parent 95d39962a8
commit b902df7b38
2 changed files with 7 additions and 4 deletions

View File

@@ -55,10 +55,8 @@ void OrderBookDB::setup(Ledger::ref ledger)
OrderBook::pointer book = boost::make_shared<OrderBook>(boost::cref(index),
boost::cref(ci), boost::cref(co), boost::cref(ii), boost::cref(io));
mSourceMap[currencyIssuer_ct(boost::reference_wrapper<const uint160>(ci),
boost::reference_wrapper<const uint160>(ii))].push_back(book);
mDestMap[currencyIssuer_ct(boost::reference_wrapper<const uint160>(co),
boost::reference_wrapper<const uint160>(io))].push_back(book);
mSourceMap[currencyIssuer_ct(ci, ii)].push_back(book);
mDestMap[currencyIssuer_ct(co, io)].push_back(book);
}
}

View File

@@ -16,7 +16,12 @@
//
typedef std::pair<uint160, uint160> currencyIssuer_t;
#ifdef C11X
typedef std::pair<const uint160&, const uint160&> currencyIssuer_ct;
#else
typedef std::pair<uint160, uint160> currencyIssuer_ct; // C++ defect 106
#endif
class BookListeners
{