mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Fix for C++ defect 106.
This commit is contained in:
@@ -1,7 +1,9 @@
|
|||||||
|
#include "OrderBookDB.h"
|
||||||
|
|
||||||
#include <boost/foreach.hpp>
|
#include <boost/foreach.hpp>
|
||||||
|
#include <boost/ref.hpp>
|
||||||
|
|
||||||
#include "Application.h"
|
#include "Application.h"
|
||||||
#include "OrderBookDB.h"
|
|
||||||
#include "Log.h"
|
#include "Log.h"
|
||||||
|
|
||||||
SETUP_LOG();
|
SETUP_LOG();
|
||||||
@@ -53,8 +55,10 @@ void OrderBookDB::setup(Ledger::ref ledger)
|
|||||||
OrderBook::pointer book = boost::make_shared<OrderBook>(boost::cref(index),
|
OrderBook::pointer book = boost::make_shared<OrderBook>(boost::cref(index),
|
||||||
boost::cref(ci), boost::cref(co), boost::cref(ii), boost::cref(io));
|
boost::cref(ci), boost::cref(co), boost::cref(ii), boost::cref(io));
|
||||||
|
|
||||||
mSourceMap[currencyIssuer_ct(ci, ii)].push_back(book);
|
mSourceMap[currencyIssuer_ct(boost::reference_wrapper<const uint160>(ci),
|
||||||
mDestMap[currencyIssuer_ct(co, io)].push_back(book);
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user