- File:
-
- 1 edited
-
src/ResolvExpr/ConversionCost.cc (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/ConversionCost.cc
r9d5089e r1c9568f0 85 85 }); 86 86 } else { 87 PassVisitor<ConversionCost> converter( 88 dest, indexer, env, 89 (Cost (*)(Type*, Type*, const SymTab::Indexer&, const TypeEnvironment&)) 90 conversionCost ); 87 PassVisitor<ConversionCost> converter( dest, indexer, env, conversionCost ); 91 88 src->accept( converter ); 92 89 if ( converter.pass.get_cost() == Cost::infinity ) { … … 137 134 } else { 138 135 PRINT( std::cerr << "reference to rvalue conversion" << std::endl; ) 139 PassVisitor<ConversionCost> converter( 140 dest, indexer, env, 141 (Cost (*)(Type*, Type*, const SymTab::Indexer&, const TypeEnvironment&)) 142 conversionCost ); 136 PassVisitor<ConversionCost> converter( dest, indexer, env, conversionCost ); 143 137 src->accept( converter ); 144 138 return converter.pass.get_cost(); … … 488 482 } // if 489 483 } 490 491 Cost conversionCost(492 const ast::Type * src, const ast::Type * dst, const ast::SymbolTable & symtab,493 const ast::TypeEnvironment & env494 ) {495 #warning unimplemented496 (void)src; (void)dst; (void)symtab; (void)env;497 assert(false);498 return Cost::zero;499 }500 484 } // namespace ResolvExpr 501 485
Note:
See TracChangeset
for help on using the changeset viewer.