0013-Resolve-name-lookup-ambiguity-causing-error-with-GCC.patch 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. From 60460df2a6d7b43a860a8f8b614c049ec0127ea8 Mon Sep 17 00:00:00 2001
  2. From: Boris Kolpackov <boris@codesynthesis.com>
  3. Date: Wed, 7 Jul 2021 09:26:57 +0200
  4. Subject: [PATCH] Resolve name lookup ambiguity causing error with GCC 11
  5. [Upstream: 47035c0f72efd99a2210cd45db6e42423fb74533]
  6. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
  7. ---
  8. odb/relational/header.hxx | 2 ++
  9. odb/relational/source.hxx | 8 ++++++++
  10. 2 files changed, 10 insertions(+)
  11. diff --git a/odb/relational/header.hxx b/odb/relational/header.hxx
  12. index 63dea09..d7f78fa 100644
  13. --- a/odb/relational/header.hxx
  14. +++ b/odb/relational/header.hxx
  15. @@ -50,6 +50,8 @@ namespace relational
  16. typedef typename member_base_impl<T>::member_info member_info;
  17. + using member_base_impl<T>::container;
  18. +
  19. virtual bool
  20. pre (member_info& mi)
  21. {
  22. diff --git a/odb/relational/source.hxx b/odb/relational/source.hxx
  23. index 716aa10..7da25fc 100644
  24. --- a/odb/relational/source.hxx
  25. +++ b/odb/relational/source.hxx
  26. @@ -1360,6 +1360,8 @@ namespace relational
  27. typedef typename member_base_impl<T>::member_info member_info;
  28. + using member_base_impl<T>::container;
  29. +
  30. virtual bool
  31. pre (member_info& mi)
  32. {
  33. @@ -1744,6 +1746,8 @@ namespace relational
  34. typedef typename member_base_impl<T>::member_info member_info;
  35. + using member_base_impl<T>::container;
  36. +
  37. virtual bool
  38. pre (member_info& mi)
  39. {
  40. @@ -2007,6 +2011,8 @@ namespace relational
  41. typedef typename member_base_impl<T>::member_info member_info;
  42. + using member_base_impl<T>::container;
  43. +
  44. virtual void
  45. set_null (member_info&) = 0;
  46. @@ -2458,6 +2464,8 @@ namespace relational
  47. typedef typename member_base_impl<T>::member_info member_info;
  48. + using member_base_impl<T>::container;
  49. +
  50. virtual void
  51. get_null (string const& var) const = 0;
  52. --
  53. 2.34.1