Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ResolvExpr/ConversionCost.cc

    r9d5089e r1c9568f0  
    8585                        });
    8686                } 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 );
    9188                        src->accept( converter );
    9289                        if ( converter.pass.get_cost() == Cost::infinity ) {
     
    137134                        } else {
    138135                                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 );
    143137                                src->accept( converter );
    144138                                return converter.pass.get_cost();
     
    488482                } // if
    489483        }
    490 
    491         Cost conversionCost(
    492                 const ast::Type * src, const ast::Type * dst, const ast::SymbolTable & symtab,
    493                 const ast::TypeEnvironment & env
    494         ) {
    495                 #warning unimplemented
    496                 (void)src; (void)dst; (void)symtab; (void)env;
    497                 assert(false);
    498                 return Cost::zero;
    499         }
    500484} // namespace ResolvExpr
    501485
Note: See TracChangeset for help on using the changeset viewer.