gcc11.patch 875 B

1234567891011121314151617181920212223242526
  1. From b773c01fc13d2ae67abc0839888e383be23562fd Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?Tommi=20M=C3=A4kitalo?= <tommi@tntnet.org>
  3. Date: Sun, 24 Jan 2021 17:20:24 +0100
  4. Subject: [PATCH] make cxxtools::Char a trivial class by definining the default
  5. constructor as default
  6. ---
  7. include/cxxtools/char.h | 4 +---
  8. 1 file changed, 1 insertion(+), 3 deletions(-)
  9. diff --git a/include/cxxtools/char.h b/include/cxxtools/char.h
  10. index 1e637317..3a4ed62a 100644
  11. --- a/include/cxxtools/char.h
  12. +++ b/include/cxxtools/char.h
  13. @@ -68,9 +68,7 @@ namespace cxxtools
  14. typedef int32_t value_type;
  15. //! Constructs a character with a value of 0.
  16. - Char()
  17. - : _value(0)
  18. - {}
  19. + Char() = default;
  20. //! Constructs a character using the given value as base for the character value.
  21. Char(value_type ch)