Skip to content

Commit 7ed19be

Browse files
committed
Add explicit namespaces for std and pugixml.
Signed-off-by: Keith Rothman <[email protected]>
1 parent ca6f2b6 commit 7ed19be

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

vpr/src/route/rr_graph_reader.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ void load_rr_file(const t_graph_type graph_type,
140140
VTR_ASSERT(max_chan_width > 0);
141141

142142
/* Branches to binary format */
143-
next_component = get_single_child(rr_graph, "binary_nodes_and_edges", loc_data, OPTIONAL);
143+
next_component = get_single_child(rr_graph, "binary_nodes_and_edges", loc_data, pugiutil::OPTIONAL);
144144
if (next_component) {
145145
/* Loads edges, switches, and node look up tables*/
146146
next_component = get_single_child(rr_graph, "switches", loc_data);
@@ -150,7 +150,7 @@ void load_rr_file(const t_graph_type graph_type,
150150

151151
process_switches(next_component, loc_data);
152152

153-
next_component = get_single_child(rr_graph, "binary_nodes_and_edges", loc_data, OPTIONAL);
153+
next_component = get_single_child(rr_graph, "binary_nodes_and_edges", loc_data, pugiutil::OPTIONAL);
154154
auto filename = get_attribute(next_component, "file", loc_data).as_string("");
155155
VTR_LOG("Using Binary File: %s\n", filename);
156156
FILE* fp = fopen(filename, "rb");

vpr/src/route/rr_graph_writer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ void write_rr_graph(const char* file_name, const std::vector<t_segment_inf>& seg
4747
VTR_LOG("RR_Graph binary file %s\n", bin_file_name.c_str());
4848
fb = vtr::fopen(bin_file_name.c_str(), "w");
4949
}
50-
fp.open(file_name, fstream::out | fstream::trunc);
50+
fp.open(file_name, std::fstream::out | std::fstream::trunc);
5151

5252
/* Prints out general info for easy error checking*/
5353
if (!fp.is_open() || !fp.good()) {

0 commit comments

Comments
 (0)