Skip to content

Commit cf141e6

Browse files
committed
Remove local declaration of void_t
With the move to C++ 17 we can use std::void_t instead.
1 parent d44cdcd commit cf141e6

File tree

3 files changed

+4
-40
lines changed

3 files changed

+4
-40
lines changed

src/jsil/jsil_language.h

+3-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ class jsil_languaget:public languaget
5151
const namespacet &ns) override;
5252

5353
std::unique_ptr<languaget> new_language() override
54-
{ return std::make_unique<jsil_languaget>(); }
54+
{
55+
return std::make_unique<jsil_languaget>();
56+
}
5557

5658
std::string id() const override
5759
{

src/solvers/smt2_incremental/ast/smt_terms.h

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
#include <util/irep.h>
77

88
#include <solvers/smt2_incremental/response_or_error.h>
9-
#include <solvers/smt2_incremental/type_traits.h>
109

1110
#include "smt_index.h"
1211
#include "smt_sorts.h"
@@ -150,7 +149,7 @@ class smt_function_application_termt : public smt_termt
150149
template <class functiont>
151150
struct has_indicest<
152151
functiont,
153-
void_t<decltype(std::declval<functiont>().indices())>> : std::true_type
152+
std::void_t<decltype(std::declval<functiont>().indices())>> : std::true_type
154153
{
155154
};
156155

src/solvers/smt2_incremental/type_traits.h

-37
This file was deleted.

0 commit comments

Comments
 (0)