Skip to content

Commit 6826caf

Browse files
authored
Merge pull request #2190 from hzeller/20221103-update-to-c++-17
Update to C++17 minimum requirement.
2 parents 2a29e57 + 8ec1474 commit 6826caf

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,9 @@ add_definitions("-DVTR_ASSERT_LEVEL=${VTR_ASSERT_LEVEL}")
8888
include(CheckCXXCompilerFlag)
8989

9090
#
91-
# We require c++14 support
91+
# We require c++17 support
9292
#
93-
set(CMAKE_CXX_STANDARD 14)
93+
set(CMAKE_CXX_STANDARD 17)
9494
set(CMAKE_CXX_STANDARD_REQUIRED ON)
9595
set(CMAKE_CXX_EXTENSIONS OFF) #No compiler specific extensions
9696

vpr/src/route/rr_graph.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1583,8 +1583,7 @@ static std::function<void(t_chan_width*)> alloc_and_load_rr_graph(RRGraphBuilder
15831583
}
15841584
VTR_LOG("CHAN->CHAN type edge count:%d\n", num_edges);
15851585
num_edges = 0;
1586-
std::function<void(t_chan_width*)> update_chan_width = [](t_chan_width*) {
1587-
};
1586+
std::function<void(t_chan_width*)> update_chan_width = [](t_chan_width*) noexcept {};
15881587
if (clock_modeling == DEDICATED_NETWORK) {
15891588
ClockRRGraphBuilder builder(chan_width, grid, &L_rr_node, &rr_graph_builder);
15901589
builder.create_and_append_clock_rr_graph(num_seg_types_x, &rr_edges_to_create);

0 commit comments

Comments
 (0)