Changes in / [3fc0f2a:5aa4656]


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Type.hpp

    r3fc0f2a r5aa4656  
    3737public:
    3838        CV::Qualifiers qualifiers;
    39         std::vector<ptr<Attribute>> attributes;
    40 
    41         Type( CV::Qualifiers q = {}, std::vector<ptr<Attribute>> && as = {} )
    42         : qualifiers(q), attributes(std::move(as)) {}
     39
     40        Type( CV::Qualifiers q = {} ) : qualifiers(q) {}
    4341
    4442        bool is_const() const { return qualifiers.is_const; }
     
    270268        ForallList forall;
    271269
    272         ParameterizedType( ForallList&& fs = {}, CV::Qualifiers q = {},
    273                 std::vector<ptr<Attribute>> && as = {} )
    274         : Type(q, std::move(as)), forall(std::move(fs)) {}
    275        
    276         ParameterizedType( CV::Qualifiers q, std::vector<ptr<Attribute>> && as = {} )
    277         : Type(q, std::move(as)), forall() {}
     270        ParameterizedType( ForallList&& fs = {}, CV::Qualifiers q = {} )
     271        : Type(q), forall(std::move(fs)) {}
     272        ParameterizedType( CV::Qualifiers q ) : Type(q), forall() {}
    278273
    279274private:
     
    316311public:
    317312        std::vector<ptr<Expr>> params;
     313        std::vector<ptr<Attribute>> attributes;
    318314        std::string name;
    319315        bool hoistType = false;
     
    321317        ReferenceToType( const std::string& n, CV::Qualifiers q = {},
    322318                std::vector<ptr<Attribute>> && as = {} )
    323         : ParameterizedType(q, std::move(as)), params(), name(n) {}
     319        : ParameterizedType(q), params(), attributes(std::move(as)), name(n) {}
    324320
    325321        /// Gets aggregate declaration this type refers to
Note: See TracChangeset for help on using the changeset viewer.