Skip to content

Commit

Permalink
libtopology/./topology_graph.cpp|298 col 31| warning: catching polymo…
Browse files Browse the repository at this point in the history
…rphic type 'class std::runtime_error' by value [-Wcatch-value=]

||   298 |         } catch(runtime_error e) {
||       |                               ^
  • Loading branch information
Thomasb81 committed Feb 21, 2024
1 parent 1b6afc5 commit e82d2db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cola/libtopology/topology_graph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ bool EdgePoint::assertConvexBend() const {
COLA_ASSERT(false);
}
}
} catch(runtime_error e) {
} catch(runtime_error & e) {
printf(" convexity bend point test failed: %s, dx=%f, dy=%f, cp=%f:\n",e.what(),dx,dy,cp);
printf(" (nid=%d,ri=%d):u={%f,%f}\n",
u->node->id,u->rectIntersect,u->posX(),u->posY());
Expand Down

0 comments on commit e82d2db

Please sign in to comment.