Ignore:
Timestamp:
Dec 26, 2017, 10:37:33 AM (17 months ago)
Author:
cameron
Message:

Failure case and fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/re/re_name.h

    r5805 r5809  
    4747    friend Name * makeName(const std::string &, Type);
    4848    friend Name * makeName(const std::string &, const std::string &, Type);
     49    friend Name * makeName(const std::string & nm, const Name::Type type, RE * defn);
    4950    Name(const char * nameSpace, const length_t namespaceLength, const char * name, const length_t nameLength, Type type, RE * defn)
    5051    : RE(ClassTypeId::Name)
     
    141142
    142143inline Name * makeName(const std::string & property, const std::string & value, const Name::Type type) {
    143     return new Name(property.c_str(), property.length(), value.c_str(), value.length(),  type, nullptr);
     144    return new Name(property.c_str(), property.length(), value.c_str(), value.length(), type, nullptr);
     145}
     146   
     147inline Name * makeName(const std::string & nm, const Name::Type type, RE * defn) {
     148    return new Name(nullptr, 0, nm.c_str(), nm.length(), type, defn);
    144149}
    145150
Note: See TracChangeset for help on using the changeset viewer.