/* Plugin connection declarations
- Copyright (C) 2014-2018 Free Software Foundation, Inc.
+ Copyright (C) 2014-2023 Free Software Foundation, Inc.
This file is part of GCC.
{
}
- virtual ~connection ();
+ virtual ~connection () = default;
+
+ connection (const connection &) = delete;
+ connection &operator= (const connection &) = delete;
// Send a single character. This is used to introduce various
// higher-level protocol elements.
m_callbacks.add_callback (name, func);
}
- virtual void print (const char *);
+ virtual void print (const char *)
+ {
+ }
private:
- // Declared but not defined, to prevent use.
- connection (const connection &);
- connection &operator= (const connection &);
-
// Helper function for the wait_* methods.
status do_wait (bool);