@@ -270,9 +270,9 @@ void SaccrCalculator::aggregate() {
270270 DLOG (" SA-CCR: Hedging set AddOn calculation" );
271271 for (map<HedgingSetKey, Real>::iterator it = addOnHedgingSet_.begin (); it != addOnHedgingSet_.end (); it++) {
272272 // Add-ons
273- const NettingSetDetails& nettingSetDetails = QuantLib::ext ::get<0 >(it->first );
274- const AssetClass& assetClass = QuantLib::ext ::get<1 >(it->first );
275- const string& hedgingSet = QuantLib::ext ::get<2 >(it->first );
273+ const NettingSetDetails& nettingSetDetails = std ::get<0 >(it->first );
274+ const AssetClass& assetClass = std ::get<1 >(it->first );
275+ const string& hedgingSet = std ::get<2 >(it->first );
276276 if (assetClass == AssetClass::IR) {
277277 // effectiveNotional_[it->first] =
278278 // sqrt(D1 * D1 + D2 * D2 + D3 * D3 + 1.4 * (D1 * D2 + D2 * D3) + 0.6 * D1 * D3);
@@ -290,12 +290,12 @@ void SaccrCalculator::aggregate() {
290290 Real addonType = 0 ;
291291 Real addonTypeSquared = 0 ;
292292 for (const auto & [hedgingSubsetKey, effectiveNotional] : subsetEffectiveNotional_) {
293- HedgingSetKey hedgingSetKey (QuantLib::ext ::get<0 >(hedgingSubsetKey),
294- QuantLib::ext ::get<1 >(hedgingSubsetKey),
295- QuantLib::ext ::get<2 >(hedgingSubsetKey));
293+ HedgingSetKey hedgingSetKey (std ::get<0 >(hedgingSubsetKey),
294+ std ::get<1 >(hedgingSubsetKey),
295+ std ::get<2 >(hedgingSubsetKey));
296296 if (hedgingSetKey != it->first )
297297 continue ;
298- const string& hedgingSubset = QuantLib::ext ::get<3 >(hedgingSubsetKey);
298+ const string& hedgingSubset = std ::get<3 >(hedgingSubsetKey);
299299 vector<string> tokens;
300300 boost::split (tokens, hedgingSubset, boost::is_any_of (" _" ));
301301 QL_REQUIRE (tokens.size () == 1 || tokens.size () == 2 ,
@@ -319,10 +319,10 @@ void SaccrCalculator::aggregate() {
319319 Real addonType = 0 ;
320320 Real addonTypeSquared = 0 ;
321321 for (const auto & [hedgingSubsetKey, effectiveNotional] : subsetEffectiveNotional_) {
322- string hedgingSubset = QuantLib::ext ::get<3 >(hedgingSubsetKey);
323- HedgingSetKey hedgingSetKey (QuantLib::ext ::get<0 >(hedgingSubsetKey),
324- QuantLib::ext ::get<1 >(hedgingSubsetKey),
325- QuantLib::ext ::get<2 >(hedgingSubsetKey));
322+ string hedgingSubset = std ::get<3 >(hedgingSubsetKey);
323+ HedgingSetKey hedgingSetKey (std ::get<0 >(hedgingSubsetKey),
324+ std ::get<1 >(hedgingSubsetKey),
325+ std ::get<2 >(hedgingSubsetKey));
326326 if (hedgingSetKey != it->first )
327327 continue ;
328328 bool isEquityIndex = isIndex_[hedgingSubset];
@@ -352,9 +352,9 @@ void SaccrCalculator::aggregate() {
352352 DLOG (" SA-CCR: Asset Class AddOn calculation" );
353353 for (map<AssetClassKey, Real>::iterator it = addOnAssetClass_.begin (); it != addOnAssetClass_.end (); it++) {
354354 for (map<HedgingSetKey, Real>::iterator ith = addOnHedgingSet_.begin (); ith != addOnHedgingSet_.end (); ith++) {
355- NettingSetDetails nettingSetDetails = QuantLib::ext ::get<0 >(ith->first );
356- AssetClass assetClass = QuantLib::ext ::get<1 >(ith->first );
357- // string hedgingSet = QuantLib::ext ::get<2>(it->first);
355+ NettingSetDetails nettingSetDetails = std ::get<0 >(ith->first );
356+ AssetClass assetClass = std ::get<1 >(ith->first );
357+ // string hedgingSet = std ::get<2>(it->first);
358358 AssetClassKey key (nettingSetDetails, assetClass);
359359 if (it->first != key)
360360 continue ;
@@ -421,12 +421,12 @@ void SaccrCalculator::aggregate() {
421421
422422 hedgingSets_.clear ();
423423 for (map<HedgingSetKey, Real>::iterator it = addOnHedgingSet_.begin (); it != addOnHedgingSet_.end (); it++) {
424- NettingSetDetails nettingSetDetails = QuantLib::ext ::get<0 >(it->first );
425- AssetClass ac = QuantLib::ext ::get<1 >(it->first );
424+ NettingSetDetails nettingSetDetails = std ::get<0 >(it->first );
425+ AssetClass ac = std ::get<1 >(it->first );
426426 pair<NettingSetDetails, AssetClass> key (nettingSetDetails, ac);
427427 if (hedgingSets_.find (key) == hedgingSets_.end ())
428428 hedgingSets_[key] = vector<string>();
429- hedgingSets_[key].push_back (QuantLib::ext ::get<2 >(it->first ));
429+ hedgingSets_[key].push_back (std ::get<2 >(it->first ));
430430 }
431431
432432 if (reports_.size () > 0 )
0 commit comments