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 d44cdcd commit cf141e6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 40 deletions.
4 changes: 3 additions & 1 deletion src/jsil/jsil_language.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ class jsil_languaget:public languaget
const namespacet &ns) override;

std::unique_ptr<languaget> new_language() override
{ return std::make_unique<jsil_languaget>(); }
{
return std::make_unique<jsil_languaget>();
}

std::string id() const override
{
Expand Down
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 cf141e6

Please sign in to comment.