Skip to content

Commit ab81bbd

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

File tree

2 files changed

+1
-39
lines changed

2 files changed

+1
-39
lines changed

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)