- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/AlternativeFinder.cc
rd06c808 rb0837e4 312 312 Cost convCost = conversionCost( actualType, formalType, indexer, env ); 313 313 PRINT( 314 std::cerr << std::endl << "cost is 314 std::cerr << std::endl << "cost is" << convCost << std::endl; 315 315 ) 316 316 if ( convCost == Cost::infinity ) { … … 318 318 } 319 319 convCost.incPoly( polyCost( formalType, env, indexer ) + polyCost( actualType, env, indexer ) ); 320 PRINT(321 std::cerr << "cost with polycost is " << convCost << std::endl;322 )323 320 return convCost; 324 321 } … … 373 370 if ( function->get_isVarArgs() ) { 374 371 convCost.incUnsafe(); 375 PRINT( std::cerr << "end of formals with varargs function: inc unsafe: " << convCost << std::endl; ; )376 372 // convert reference-typed expressions to value-typed expressions 377 373 referenceToRvalueConversion( *actualExpr ); … … 382 378 } 383 379 Type * formalType = (*formal)->get_type(); 380 PRINT( 381 std::cerr << std::endl << "converting "; 382 actualType->print( std::cerr, 8 ); 383 std::cerr << std::endl << " to "; 384 formalType->print( std::cerr, 8 ); 385 std::cerr << std::endl << "environment is: "; 386 alt.env.print( std::cerr, 8 ); 387 std::cerr << std::endl; 388 ) 384 389 convCost += computeExpressionConversionCost( *actualExpr, formalType, indexer, alt.env ); 385 390 ++formal; // can't be in for-loop update because of the continue
Note:
See TracChangeset
for help on using the changeset viewer.