File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2020#include < ored/portfolio/fxforward.hpp>
2121#include < ored/portfolio/portfolio.hpp>
2222#include < ored/portfolio/structuredtradeerror.hpp>
23+ #include < ored/portfolio/structuredtradewarning.hpp>
2324#include < ored/portfolio/swap.hpp>
2425#include < ored/portfolio/swaption.hpp>
2526#include < ored/utilities/log.hpp>
@@ -110,7 +111,7 @@ bool Portfolio::remove(const std::string& tradeID) {
110111void Portfolio::removeMatured (const Date& asof) {
111112 for (auto it = trades_.begin (); it != trades_.end (); /* manual */ ) {
112113 if ((*it).second ->maturity () <= asof) {
113- StructuredTradeErrorMessage ((*it).second , " " , " Trade is Matured" ).log ();
114+ StructuredTradeWarningMessage ((*it).second , " " , " Trade is Matured" ).log ();
114115 it=trades_.erase (it);
115116 } else {
116117 ++it;
You can’t perform that action at this time.
0 commit comments