Revision f9e3a1f0 custompackages/graph-parser/src/utility.tpp

View differences:

custompackages/graph-parser/src/utility.tpp
82 82
    bool exists(const std::set<T>& c, const T& key) {
83 83
        return (c.count(key) > 0);
84 84
    }
85

  
86
    template <typename T>
87
    std::string to_string(T value)
88
    {
89
        // From http://stackoverflow.com/questions/12975341/to-string-is-not-a-member-of-std-says-so-g
90

  
91
        //create an output string stream
92
        std::ostringstream os ;
93

  
94
        //throw the value into the string stream
95
        os << value ;
96

  
97
        //convert the string stream into a string and return
98
        return os.str() ;
99
    }
85 100
}
86 101

  

Also available in: Unified diff