Ignore:
Timestamp:
Jan 22, 2015, 3:04:10 PM (5 years ago)
Author:
nmedfort
Message:

Possible fix for segfault issue. CC seems to be generating the same charclass multiple times.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/pablo/pe_string.h

    r4416 r4433  
    2525        return mValue;
    2626    }
     27    inline bool isGenerated() const {
     28        return mGenerated;
     29    }
     30    inline bool isUserDefined() const {
     31        return !mGenerated;
     32    }
    2733protected:
    28     String(const std::string && value) noexcept
     34    String(const std::string && value, const bool generated) noexcept
    2935    : PabloAST(ClassTypeId::String)
    3036    , mValue(value)
     37    , mGenerated(generated)
    3138    {
    3239
    3340    }
    3441private:
    35     const std::string mValue;
     42    const std::string   mValue;
     43    const bool          mGenerated;
    3644};
    3745
Note: See TracChangeset for help on using the changeset viewer.