Skip to content

Commit

Permalink
Move over from std::enable_if_t
Browse files Browse the repository at this point in the history
Contraints ftw.
  • Loading branch information
Alexey Rusakov committed Dec 14, 2023
1 parent 06ce239 commit 9eb3113
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/profiledialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ class ProfileDialog::DeviceTable : public QTableWidget {

using QTableWidget::setItem;
template <Columns ColumnN, typename DataT>
inline auto setItem(int row, const DataT& data)
-> std::enable_if_t<std::is_constructible_v<ItemType<ColumnN>, DataT>>
requires std::is_constructible_v<ItemType<ColumnN>, DataT>
void setItem(int row, const DataT& data)
{
auto* item = new ItemType<ColumnN>(data);
item->setFlags(itemFlags<ColumnN>);
Expand Down

0 comments on commit 9eb3113

Please sign in to comment.