@@ -34,7 +34,7 @@ struct failed : std::runtime_error {
34
34
or as a macro with exactly the string `1` then this is enabled (prints to `std::cerr`);
35
35
otherwise its does nothing by returning a dummy stream. */
36
36
struct _LIBCPP_HIDE_FROM_ABI debug : std::ostream {
37
- _LIBCPP_HIDE_FROM_ABI virtual ~debug ();
37
+ _LIBCPP_HIDE_FROM_ABI virtual ~debug () = default ;
38
38
39
39
_LIBCPP_HIDE_FROM_ABI static bool enabled () {
40
40
#if defined(LIBCXX_STACKTRACE_DEBUG) && LIBCXX_STACKTRACE_DEBUG == 1
@@ -50,7 +50,7 @@ struct _LIBCPP_HIDE_FROM_ABI debug : std::ostream {
50
50
51
51
/* * No-op output stream. */
52
52
struct _LIBCPP_HIDE_FROM_ABI dummy_ostream final : std::ostream {
53
- _LIBCPP_HIDE_FROM_ABI virtual ~dummy_ostream ();
53
+ _LIBCPP_HIDE_FROM_ABI virtual ~dummy_ostream () = default ;
54
54
friend std::ostream& operator <<(dummy_ostream& bogus, auto const &) { return bogus; }
55
55
};
56
56
@@ -123,14 +123,14 @@ struct _LIBCPP_HIDE_FROM_ABI fd_streambuf final : std::streambuf {
123
123
char * buf_;
124
124
size_t size_;
125
125
_LIBCPP_HIDE_FROM_ABI fd_streambuf (fd& fd, char * buf, size_t size) : fd_(fd), buf_(buf), size_(size) {}
126
- _LIBCPP_HIDE_FROM_ABI virtual ~fd_streambuf ();
126
+ _LIBCPP_HIDE_FROM_ABI virtual ~fd_streambuf () = default ;
127
127
_LIBCPP_HIDE_FROM_ABI int underflow () override ;
128
128
};
129
129
130
130
/* * Wraps an `FDInStreamBuffer` in an `istream` */
131
131
struct fd_istream final : std::istream {
132
132
fd_streambuf& buf_;
133
- _LIBCPP_HIDE_FROM_ABI virtual ~fd_istream ();
133
+ _LIBCPP_HIDE_FROM_ABI virtual ~fd_istream () = default ;
134
134
_LIBCPP_HIDE_FROM_ABI explicit fd_istream (fd_streambuf& buf) : std::istream(nullptr ), buf_(buf) { rdbuf (&buf_); }
135
135
};
136
136
0 commit comments