From b7ece6c5ba3670e653ce19d759e6cfb48e6cf4ff Mon Sep 17 00:00:00 2001 From: Timo Weingärtner Date: Mon, 26 Aug 2013 11:56:14 +0200 Subject: remove declarations for default copy and move --- rfc4251.h | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/rfc4251.h b/rfc4251.h index 1b6a5e9..6e4b7ea 100644 --- a/rfc4251.h +++ b/rfc4251.h @@ -42,14 +42,8 @@ struct rfc4251byte { }; rfc4251byte () = default; - rfc4251byte (rfc4251byte const &) = default; - rfc4251byte (rfc4251byte &&) = default; - inline explicit rfc4251byte (uint8_t v) : value(v) {} - rfc4251byte & operator= (rfc4251byte const &) = default; - rfc4251byte & operator= (rfc4251byte &&) = default; - inline operator uint8_t () const { return value; } }; @@ -69,13 +63,8 @@ struct rfc4251bool { }; rfc4251bool () = default; - rfc4251bool (rfc4251bool const &) = default; - rfc4251bool (rfc4251bool &&) = default; - inline explicit rfc4251bool (uint8_t v) : value(v) {} - rfc4251bool & operator= (rfc4251bool const &) = default; - rfc4251bool & operator= (rfc4251bool &&) = default; inline operator uint8_t () const { return value; } }; @@ -96,13 +85,8 @@ struct rfc4251uint32 { }; rfc4251uint32 () = default; - rfc4251uint32 (rfc4251uint32 const &) = default; - rfc4251uint32 (rfc4251uint32 &&) = default; - inline explicit rfc4251uint32 (uint32_t v) { value = htonl(v); } - rfc4251uint32 & operator= (rfc4251uint32 const &) = default; - rfc4251uint32 & operator= (rfc4251uint32 &&) = default; inline operator uint32_t () const { return ntohl(value); } }; @@ -123,14 +107,8 @@ struct rfc4251uint64 { }; rfc4251uint64 () = default; - rfc4251uint64 (rfc4251uint64 const &) = default; - rfc4251uint64 (rfc4251uint64 &&) = default; - inline explicit rfc4251uint64 (uint64_t v); - rfc4251uint64 & operator= (rfc4251uint64 const &) = default; - rfc4251uint64 & operator= (rfc4251uint64 &&) = default; - inline explicit operator uint64_t () const; }; @@ -163,9 +141,6 @@ struct rfc4251string { std::vector value; rfc4251string () = default; - rfc4251string (rfc4251string const &) = default; - rfc4251string (rfc4251string &&) = default; - inline explicit rfc4251string (char const *); inline explicit rfc4251string (char const *, size_t); inline explicit rfc4251string (std::string const & s) : rfc4251string{s.data(), s.size()} {} @@ -173,9 +148,6 @@ struct rfc4251string { inline explicit rfc4251string (mpz_srcptr); inline explicit rfc4251string (mpz_class const & x) : rfc4251string{x.get_mpz_t()} {} - rfc4251string & operator= (rfc4251string const &) = default; - rfc4251string & operator= (rfc4251string &&) = default; - inline operator std::string () const; inline operator std::vector () const; inline operator mpz_class () const; -- cgit v1.2.3