Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ResolvExpr/ConversionCost.h

    r0c6596f rea6332d  
    1616#pragma once
    1717
    18 #include <functional>         // for function
    19 
    2018#include "Cost.h"             // for Cost
    2119#include "SynTree/Visitor.h"  // for Visitor
     
    2321
    2422namespace SymTab {
    25         class Indexer;
     23class Indexer;
    2624}  // namespace SymTab
    2725
    2826namespace ResolvExpr {
    29         class TypeEnvironment;
     27class TypeEnvironment;
    3028
    3129        class ConversionCost : public Visitor {
     
    3937                virtual void visit(PointerType *pointerType);
    4038                virtual void visit(ArrayType *arrayType);
    41                 virtual void visit(ReferenceType *refType);
    4239                virtual void visit(FunctionType *functionType);
    4340                virtual void visit(StructInstType *aggregateUseType);
     
    5653                const TypeEnvironment &env;
    5754        };
    58 
    59         typedef std::function<int(Type *, Type *, const TypeEnvironment &, const SymTab::Indexer &)> PtrsFunction;
    60         Cost convertToReferenceCost( Type * src, ReferenceType * dest, const SymTab::Indexer & indexer, const TypeEnvironment & env, PtrsFunction func );
    6155} // namespace ResolvExpr
    6256
Note: See TracChangeset for help on using the changeset viewer.