Skip to content

Commit

Permalink
Remove local declaration of void_t
Browse files Browse the repository at this point in the history
With the move to C++ 17 we can use std::void_t instead.
  • Loading branch information
tautschnig committed Nov 14, 2023
1 parent a8de0b7 commit ab81bbd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 39 deletions.
3 changes: 1 addition & 2 deletions src/solvers/smt2_incremental/ast/smt_terms.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
#include <util/irep.h>

#include <solvers/smt2_incremental/response_or_error.h>
#include <solvers/smt2_incremental/type_traits.h>

#include "smt_index.h"
#include "smt_sorts.h"
Expand Down Expand Up @@ -150,7 +149,7 @@ class smt_function_application_termt : public smt_termt
template <class functiont>
struct has_indicest<
functiont,
void_t<decltype(std::declval<functiont>().indices())>> : std::true_type
std::void_t<decltype(std::declval<functiont>().indices())>> : std::true_type
{
};

Expand Down
37 changes: 0 additions & 37 deletions src/solvers/smt2_incremental/type_traits.h

This file was deleted.

0 comments on commit ab81bbd

Please sign in to comment.