[binutils-gdb] Include traits.h in function-view.h

Tom Tromey via Gdb-cvs <[email protected]>
Newsgroups gmane.comp.gdb.cvs
Message-ID <[email protected]>
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=5ed455efd8476ce4f70266d5797ef9f3eb1e8919

commit 5ed455efd8476ce4f70266d5797ef9f3eb1e8919
Author: Tom Tromey <[email protected]>
Date:   Wed Apr 29 12:34:13 2026 -0600

    Include traits.h in function-view.h
    
    function-view.h uses gdb::Or but does not include gdbsupport/traits.h.
    This patch corrects the oversight.

Diff:
---
 gdbsupport/function-view.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gdbsupport/function-view.h b/gdbsupport/function-view.h
index a5beedf41e8..5a73f9e948e 100644
--- a/gdbsupport/function-view.h
+++ b/gdbsupport/function-view.h
@@ -193,6 +193,8 @@
   unittests/function-view-selftests.c.  */
 
 #include <type_traits>
+#include "gdbsupport/traits.h"
+
 namespace gdb {
 
 namespace fv_detail {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.