diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2024-04-22 16:10:15 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2024-04-22 21:34:19 -0400 |
commit | 6e7c49c2dd9ab0803894925c2ec422ea5aeddfb8 (patch) | |
tree | 33ed9821b60e40ad3507befd7d2e8bc62930f5d4 /gdbsupport | |
parent | ec4525259262492b61fb9bd2f9acdf156ab037fc (diff) | |
download | gdb-6e7c49c2dd9ab0803894925c2ec422ea5aeddfb8.zip gdb-6e7c49c2dd9ab0803894925c2ec422ea5aeddfb8.tar.gz gdb-6e7c49c2dd9ab0803894925c2ec422ea5aeddfb8.tar.bz2 |
gdb: move RequireLongest to gdbsupport/traits.h
Move it out of defs.h.
Change-Id: Ie1743d41a57f81667650048563e66073c72230cf
Approved-By: John Baldwin <jhb@FreeBSD.org>
Diffstat (limited to 'gdbsupport')
-rw-r--r-- | gdbsupport/traits.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdbsupport/traits.h b/gdbsupport/traits.h index 92fe59f..85cbc94 100644 --- a/gdbsupport/traits.h +++ b/gdbsupport/traits.h @@ -143,4 +143,8 @@ template<typename Condition> using Requires = typename std::enable_if<Condition::value, void>::type; } +template<typename T> +using RequireLongest = gdb::Requires<gdb::Or<std::is_same<T, LONGEST>, + std::is_same<T, ULONGEST>>>; + #endif /* COMMON_TRAITS_H */ |