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

View differences:

custompackages/graph-parser/src/utility.cpp
18 18
        std::vector<std::string> edgesVec;
19 19
        std::vector<double> costsVec;
20 20
        BGL_FORALL_EDGES(e, g, Graph) {
21
            std::string s = "(" + g[e.m_source].id + ", " + g[e.m_target].id + ") - " + std::to_string(g[e].cost);
21
            std::string s = "(" + g[e.m_source].id + ", " + g[e.m_target].id + ") - " + stdhelper::to_string(g[e].cost);
22 22
            edgesVec.push_back(s);
23 23
            costsVec.push_back(g[e].cost);
24 24
        }
......
51 51
            int index = boost::get(v_index_map, v);
52 52
            cout << g[v].id << ": " << v << endl;
53 53
            string vertex_id = g[v].id;
54
            outputs.push_back(vertex_id + ": " + std::to_string(index));
54
            outputs.push_back(vertex_id + ": " + stdhelper::to_string(index));
55 55
        }
56 56

  
57 57
        using namespace boost::spirit::karma;
......
123 123

  
124 124
        VertexIndexStdMap::const_iterator iter;
125 125
        for (iter = v_index_std_map.begin(); iter != v_index_std_map.end(); ++iter) {
126
            outputs.push_back(std::to_string(iter->second));
127
            // outputs.push_back(std::to_string(&(iter->first)) + ": " + std::to_string(iter->second));
126
            outputs.push_back(stdhelper::to_string(iter->second));
127
            // outputs.push_back(stdhelper::to_string(&(iter->first)) + ": " + stdhelper::to_string(iter->second));
128 128
        }
129 129

  
130 130
        using namespace boost::spirit::karma;
......
139 139
            std::string vertex_id = g[v].id;
140 140
            // Uncomment to print the address of vertex v
141 141
            // cout << v << endl;
142
            outputs.push_back(vertex_id + ": " + std::to_string(index));
142
            outputs.push_back(vertex_id + ": " + stdhelper::to_string(index));
143 143
        }
144 144

  
145 145
        using namespace boost::spirit::karma;
......
153 153
            int index = boost::get(e_index_pmap, e);
154 154
            std::string source_id = g[boost::source(e, g)].id;
155 155
            std::string target_id = g[boost::target(e, g)].id;
156
            outputs.push_back("edge (" + source_id + ", " + target_id + ")" + ": " + std::to_string(index));
156
            outputs.push_back("edge (" + source_id + ", " + target_id + ")" + ": " + stdhelper::to_string(index));
157 157
        }
158 158

  
159 159
        using namespace boost::spirit::karma;

Also available in: Unified diff