Skip to content

Commit

Permalink
Hold off on format for now.
Browse files Browse the repository at this point in the history
  • Loading branch information
thorstenhater committed Sep 25, 2024
1 parent 6b41b3a commit e4cb64e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions arbor/util/piecewise.hpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#pragma once

#include <format>

// Create/manipulate 1-d piecewise defined objects.
//
// A `pw_element<A>` describes a _value_ of type `A` and an _extent_ of
Expand Down Expand Up @@ -428,7 +426,8 @@ struct pw_elements {
// check invariant
if (!((es == 0 && es == vs)
|| (es != 0 && es + 1 == vs))) {
throw std::runtime_error{std::format("Vertices and values need to have matching lengths; #vertices={} #values={}.", vs, es)};
// TODO(fmt): Make a better error w/ format.
throw std::runtime_error{"Vertices and values need to have matching lengths"};
}

// clean-up
Expand Down

0 comments on commit e4cb64e

Please sign in to comment.