Skip to content

Commit

Permalink
odb dbStream: fix static_assert message for std::tuple
Browse files Browse the repository at this point in the history
Signed-off-by: Felipe Garay <fgaray@google.com>
  • Loading branch information
fgaray committed Jan 5, 2024
1 parent 64eb4d0 commit 95e2ba5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/odb/include/odb/dbStream.h
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ class dbOStream
constexpr dbOStream& operator<<(const std::tuple<Ts...>& tup)
{
static_assert(I <= kTemplateRecursionLimit,
"OpenROAD disallows of std::variants larger than 16 "
"OpenROAD disallows of std::tuple larger than 16 "
"elements. You should look into alternate solutions");
if constexpr (I == sizeof...(Ts)) {
return *this;
Expand Down Expand Up @@ -405,7 +405,7 @@ class dbIStream
constexpr dbIStream& operator>>(std::tuple<Ts...>& tup)
{
static_assert(I <= kTemplateRecursionLimit,
"OpenROAD disallows of std::variants larger than 16 "
"OpenROAD disallows of std::tuple larger than 16 "
"elements. You should look into alternate solutions");
if constexpr (I == sizeof...(Ts)) {
return *this;
Expand Down

0 comments on commit 95e2ba5

Please sign in to comment.